gq 7 năm trước cách đây
mục cha
commit
ea6a557a90
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      server/app/Http/Controllers/Api/V1/AuthController.php

+ 6 - 1
server/app/Http/Controllers/Api/V1/AuthController.php

xqd
@@ -307,7 +307,12 @@ class AuthController extends Controller
             \Log::error("Send sms failed.");
         }
 
-
+        if(env("APP_DEBUG")){
+            return $this->error(0);
+        }else{
+            //product
+            return $this->api(['verify_code' => $verify_code]);
+        }
 //        return $this->api(['verify_code' => $verify_code]);
     }