作者 lyh

gx

@@ -38,7 +38,7 @@ class BaseController extends Controller @@ -38,7 +38,7 @@ class BaseController extends Controller
38 $this->token = $this->request->header('token'); 38 $this->token = $this->request->header('token');
39 if(!empty($this->token) && !empty(Cache::get($this->token))){ 39 if(!empty($this->token) && !empty(Cache::get($this->token))){
40 $info = Cache::get($this->token); 40 $info = Cache::get($this->token);
41 -// Cache::put($this->token, $info, 3600);//更新缓存时间 41 + Cache::put($this->token, $info, 3600);//更新缓存时间
42 $this->user = $info; 42 $this->user = $info;
43 $this->uid = $info['id']; 43 $this->uid = $info['id'];
44 //参数处理 44 //参数处理
@@ -25,9 +25,9 @@ class ProjectServer extends BaseService @@ -25,9 +25,9 @@ class ProjectServer extends BaseService
25 public static function useProject($project_id) 25 public static function useProject($project_id)
26 { 26 {
27 $project = Project::where(['id' => $project_id])->first(); 27 $project = Project::where(['id' => $project_id])->first();
28 - if (empty($project)) 28 + if (empty($project)){
29 return false; 29 return false;
30 - 30 + }
31 if(!$project->mysqlConfig){ 31 if(!$project->mysqlConfig){
32 return false; 32 return false;
33 } 33 }