作者 lyh

gx

@@ -79,12 +79,14 @@ class LoginController extends BaseController @@ -79,12 +79,14 @@ class LoginController extends BaseController
79 */ 79 */
80 public function autologin(UserLoginLogic $logic, EncryptUtils $encrypt) 80 public function autologin(UserLoginLogic $logic, EncryptUtils $encrypt)
81 { 81 {
  82 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);
82 $serviceSettingModel = new Service(); 83 $serviceSettingModel = new Service();
83 $info = $serviceSettingModel->read(['type'=>4]); 84 $info = $serviceSettingModel->read(['type'=>4]);
84 if($info === false){ 85 if($info === false){
85 $this->response('当前访问地址不存在',Code::USER_ERROR); 86 $this->response('当前访问地址不存在',Code::USER_ERROR);
86 } 87 }
87 $data = $encrypt->unlock_url($this->param['code'], $info['values']); 88 $data = $encrypt->unlock_url($this->param['code'], $info['values']);
  89 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
88 $data = json_decode($data, true); 90 $data = json_decode($data, true);
89 if(!isset($data['project_id']) && !isset($data['user_id'])){ 91 if(!isset($data['project_id']) && !isset($data['user_id'])){
90 $this->response('无效Code',Code::USER_ERROR); 92 $this->response('无效Code',Code::USER_ERROR);