Commit e3f1445c authored by shajiaiming's avatar shajiaiming

fix

parent b0054659
......@@ -81,16 +81,16 @@ class BaseController extends Controller
Yii::$app->request->setBodyParams($rawBodyParams);
}
}
if ('ticker' == $request_controller && 'hot-ticker' == $request_action) {
$realip = Tools::getUserIp();
$ip_list = file_get_contents('http://172.16.0.230:8080/wallet_interface_ip_limit.txt');
$ip_arr = explode("\n", $ip_list);
foreach ($ip_arr as $key => $ip) {
if ($ip == $realip) {
return false;
}
}
}
// if ('ticker' == $request_controller && 'hot-ticker' == $request_action) {
// $realip = Tools::getUserIp();
// $ip_list = file_get_contents('http://172.16.0.230:8080/wallet_interface_ip_limit.txt');
// $ip_arr = explode("\n", $ip_list);
// foreach ($ip_arr as $key => $ip) {
// if ($ip == $realip) {
// return false;
// }
// }
// }
$this->start = microtime(true);
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