Commit e3f1445c authored by shajiaiming's avatar shajiaiming

fix

parent b0054659
...@@ -81,16 +81,16 @@ class BaseController extends Controller ...@@ -81,16 +81,16 @@ class BaseController extends Controller
Yii::$app->request->setBodyParams($rawBodyParams); Yii::$app->request->setBodyParams($rawBodyParams);
} }
} }
if ('ticker' == $request_controller && 'hot-ticker' == $request_action) { // if ('ticker' == $request_controller && 'hot-ticker' == $request_action) {
$realip = Tools::getUserIp(); // $realip = Tools::getUserIp();
$ip_list = file_get_contents('http://172.16.0.230:8080/wallet_interface_ip_limit.txt'); // $ip_list = file_get_contents('http://172.16.0.230:8080/wallet_interface_ip_limit.txt');
$ip_arr = explode("\n", $ip_list); // $ip_arr = explode("\n", $ip_list);
foreach ($ip_arr as $key => $ip) { // foreach ($ip_arr as $key => $ip) {
if ($ip == $realip) { // if ($ip == $realip) {
return false; // return false;
} // }
} // }
} // }
$this->start = microtime(true); $this->start = microtime(true);
return parent::beforeAction($action); // TODO: Change the autogenerated stub return parent::beforeAction($action); // TODO: Change the autogenerated stub
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment