wang hou sheng 11 months ago
parent 4bc43e13b8
commit 2dd8549dad
  1. 5
      app/api/controller/Wholesaler.php

@ -5,11 +5,12 @@ namespace app\api\controller;
use app\api\model\wholesaler\Apply; use app\api\model\wholesaler\Apply;
use app\api\model\wholesaler\Set; use app\api\model\wholesaler\Set;
use cores\exception\BaseException; use cores\exception\BaseException;
use Exception;
use think\db\exception\DataNotFoundException; use think\db\exception\DataNotFoundException;
use think\db\exception\DbException; use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException; use think\db\exception\ModelNotFoundException;
use think\response\Json; use think\response\Json;
use yiovo\captcha\CaptchaApi; use yiovo\captcha\facade\CaptchaApi;
class Wholesaler extends Controller class Wholesaler extends Controller
{ {
@ -113,7 +114,6 @@ class Wholesaler extends Controller
if (!$avatar_id) { if (!$avatar_id) {
return $this->renderError('头像不能为空'); return $this->renderError('头像不能为空');
} }
// 验证短信验证码是否匹配
try { try {
CaptchaApi::checkSms($mobile_code, $mobile); CaptchaApi::checkSms($mobile_code, $mobile);
} catch (Exception $e) { } catch (Exception $e) {
@ -222,7 +222,6 @@ class Wholesaler extends Controller
if (!$avatar_id) { if (!$avatar_id) {
return $this->renderError('头像不能为空'); return $this->renderError('头像不能为空');
} }
// 验证短信验证码是否匹配
try { try {
CaptchaApi::checkSms($mobile_code, $mobile); CaptchaApi::checkSms($mobile_code, $mobile);
} catch (Exception $e) { } catch (Exception $e) {

Loading…
Cancel
Save