dyjh %!s(int64=6) %!d(string=hai) anos
pai
achega
2a3aa282fd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/Web/AuthController.php

+ 2 - 2
app/Http/Controllers/Web/AuthController.php

xqd
@@ -22,13 +22,13 @@ class AuthController extends Controller
             $store_id = $request->input('store_id');
             $phone = $request->input('phone');
             $name = $request->input('name');
-            if (!$phone) {
+            if (!$phone || !$name) {
                 $message = '请输入电话号码';
                 return view('web.auth.error', compact('message'));
             } else {
                 $check = AlbumUserModel::where([['phone', $phone],['g_open_id', null],['is_dealer', 1]])->first();
                 if (!$check) {
-                    $message = '该号码不存在或是已绑定';
+                    $message = '该经销商号码不存在或是已绑定';
                     return view('web.auth.error', compact('message'));
                 }