|
@@ -55,10 +55,12 @@ class AuthorizationsController extends Controller
|
|
// abort(403, '短信校验失败');
|
|
// abort(403, '短信校验失败');
|
|
// }
|
|
// }
|
|
|
|
|
|
- $user = User::firstOrCreate([
|
|
|
|
|
|
+ User::firstOrCreate([
|
|
'mobile' => $request->input('mobile'),
|
|
'mobile' => $request->input('mobile'),
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $user = User::query()->where(['mobile'=>$request->input('mobile')])->first();
|
|
|
|
+
|
|
if (!$user->ycode) {
|
|
if (!$user->ycode) {
|
|
$user->ycode = $this->create_code();
|
|
$user->ycode = $this->create_code();
|
|
}
|
|
}
|