linwu 2 hafta önce
ebeveyn
işleme
2860e53970

+ 0 - 3
app/common/service/SmsService.php

@@ -33,9 +33,6 @@ class SmsService
 
     public function send($mobile, $code, $content_param = [])
     {
-        if (env('APP_DEBUG')) {
-            return ['code' => 0];
-        }
         $url = "https://lw_test.jinjianghc.com/api/sms/send";
         $token = "JC9hFYJw68be4bbab6a96";
 //        $url = "http://bd.lwtest.com/api/sms/send";

+ 1 - 0
app/mainapp/controller/Login.php

@@ -400,6 +400,7 @@ class Login
 
     public function t1()
     {
+        return 'OK';
         $sms = new SmsService();
         $res = $sms->send('13313826760', 'verification_code', ['code' => '123456']);
         halt($res);