|
@@ -463,7 +463,7 @@ class Api
|
|
$key = strtolower($controller) . '_' . strtolower($action) . '_' . $userId;
|
|
$key = strtolower($controller) . '_' . strtolower($action) . '_' . $userId;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!RedisUtil::getInstance($key)->tryTimes($apiLimit,intval($apiLimitTime/1000))){
|
|
|
|
|
|
+ if (!RedisUtil::getInstance($key)->tryTimes($apiLimit,intval($apiLimitTime))){
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|