| xqd
@@ -108,11 +108,11 @@ class AuthorizationsController extends Controller
|
|
|
throw new Exception($validator->messages()->first());
|
|
|
}
|
|
|
$res = $this->do_login($request->mobile,$request->password,$request->registrationId,$request->phoneModel);
|
|
|
- file_put_contents('login_log.log',date("Y-m-d H:i:s").var_export($res,true).PHP_EOL,FILE_APPEND);
|
|
|
+
|
|
|
}catch (\Exception $exception){
|
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
|
}
|
|
|
-
|
|
|
+ file_put_contents('login_log.log',date("Y-m-d H:i:s").'执行成功'.PHP_EOL,FILE_APPEND);
|
|
|
return response()->json($res);
|
|
|
}
|
|
|
|