作者 何书鹏
1 个管道 的构建 通过 耗费 13 秒

优化

... ... @@ -294,7 +294,7 @@ class Game extends Api
->where('barrier_id',$barrier_id)
->whereTime('createtime','today')
->count();
$today_num >= $barrier['play_limit'] && $this->error('今日此关可玩游戏次数已用完');
$today_num >= $barrier['play_limit'] && $this->error('今日此关可玩游戏次数已用完',[]);
$right_list = Rubbish::where('type',$barrier['rubbish_type'])
->where('difficulty',$barrier['difficulty'])
->field('id,name,image')
... ...