作者 lyh

gx

... ... @@ -57,7 +57,6 @@ class LoginController extends BaseController
*/
public function autologin(UserLoginLogic $logic, EncryptUtils $encrypt)
{
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(222222222, true) . PHP_EOL, FILE_APPEND);
$serviceSettingModel = new Service();
$info = $serviceSettingModel->read(['type'=>4]);
if($info === false){
... ... @@ -65,7 +64,6 @@ class LoginController extends BaseController
}
$data = $encrypt->unlock_url($this->param['code'], $info['values']);
$data = json_decode($data, true);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
if(!isset($data['project_id']) && !isset($data['user_id'])){
$this->response('无效Code',Code::USER_ERROR);
}
... ...