|
|
|
@ -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) { |
|
|
|
|