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