Commit dc22bac0 authored by zhoujun's avatar zhoujun

放开限制

parent 28f0d46b
Pipeline #1616 passed with stage
in 0 seconds
......@@ -349,9 +349,9 @@ class CardController extends Controller
}
$data = [];
if(Cache::has('card:info:'.$userId.':'.$roleId)){
$data = Cache::get('card:info:'.$userId.':'.$roleId);
}else{
//if(Cache::has('card:info:'.$userId.':'.$roleId)){
//$data = Cache::get('card:info:'.$userId.':'.$roleId);
//}else{
$result = $this->getVerityLogin($userId);
if($result['code'] != 200) return $this->jsonReturn($result['code'], $result['msg']);
if (empty($roleId) || empty($serverId)) return $this->jsonReturn(7002, '参数错误');
......@@ -469,8 +469,8 @@ class CardController extends Controller
}else{
$data['braveTime'] = '00:00';
}
Cache::put('card:info:'.$userId.':'.$roleId,$data,300);
}
//Cache::put('card:info:'.$userId.':'.$roleId,$data,300);
//}
if(Cache::has('card:num:'.$userId.':'.$roleId)){
$num = Cache::get('card:num:'.$userId.':'.$roleId) + 1;
......
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