Mike 4 年之前
父节点
当前提交
8762a7aabf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/V2/CommonController.php

+ 1 - 1
app/Http/Controllers/Api/V2/CommonController.php

@@ -343,7 +343,7 @@ class CommonController extends Controller
         ]);
         ]);
         $mobile =$req['phone']; //获取传入的手机号
         $mobile =$req['phone']; //获取传入的手机号
         $verify_code = generate_code();
         $verify_code = generate_code();
-        $texts = send_sms($mobile,'verify_template_code',['code'=>$verify_code]);
+        $result = send_sms($mobile,'verify_template_code',['code'=>$verify_code]);
         if (empty($result['Code']) || $result['Code'] != 'OK'){
         if (empty($result['Code']) || $result['Code'] != 'OK'){
             return out(null, 30010, '验证码发送失败,请稍后重试');
             return out(null, 30010, '验证码发送失败,请稍后重试');
         }
         }