gq 7 years ago
parent
commit
ea6a557a90
1 changed files with 6 additions and 1 deletions
  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]);
     }