|
@@ -237,8 +237,8 @@ class Index extends Api
|
|
$times_limit_redis = 'pipei_times_limit_'.$user_id;
|
|
$times_limit_redis = 'pipei_times_limit_'.$user_id;
|
|
$user_times = Cache::get($times_limit_redis) ?: 0;
|
|
$user_times = Cache::get($times_limit_redis) ?: 0;
|
|
|
|
|
|
- if($user_times >= $times_limit){
|
|
|
|
- $this->error('今日已经超过匹配次数上限');
|
|
|
|
|
|
+ if($times_limit > 0 && $user_times >= $times_limit){
|
|
|
|
+ $this->error('今日已超匹配上限'.$times_limit.'次');
|
|
}
|
|
}
|
|
|
|
|
|
//where
|
|
//where
|