作者 lyh

gx

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