From 2dd8549dad46f3f5b175c411a84ca9492ec23e96 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:54:39 +0800 Subject: [PATCH] 1 --- app/api/controller/Wholesaler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/controller/Wholesaler.php b/app/api/controller/Wholesaler.php index 44d90bb4..b1a2311f 100644 --- a/app/api/controller/Wholesaler.php +++ b/app/api/controller/Wholesaler.php @@ -5,11 +5,12 @@ namespace app\api\controller; use app\api\model\wholesaler\Apply; use app\api\model\wholesaler\Set; use cores\exception\BaseException; +use Exception; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; use think\response\Json; -use yiovo\captcha\CaptchaApi; +use yiovo\captcha\facade\CaptchaApi; class Wholesaler extends Controller { @@ -113,7 +114,6 @@ class Wholesaler extends Controller if (!$avatar_id) { return $this->renderError('头像不能为空'); } - // 验证短信验证码是否匹配 try { CaptchaApi::checkSms($mobile_code, $mobile); } catch (Exception $e) { @@ -222,7 +222,6 @@ class Wholesaler extends Controller if (!$avatar_id) { return $this->renderError('头像不能为空'); } - // 验证短信验证码是否匹配 try { CaptchaApi::checkSms($mobile_code, $mobile); } catch (Exception $e) {