WIN-2308041133\Administrator vor 5 Monaten
Ursprung
Commit
06d972a5d1
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/controller/api/store/merchant/MerchantIntention.php

+ 2 - 2
app/controller/api/store/merchant/MerchantIntention.php

@@ -81,7 +81,7 @@ class MerchantIntention extends BaseController
             throw new ValidateException('手机号已是管理员,不可申请');
         }
 
-        // 创建商户入驻意向
+        // 创建商户入驻意向create
         $intention = $this->repository->create($data);
 
         // 发送管理员通知,提示有新的商户入驻申请
@@ -210,7 +210,7 @@ class MerchantIntention extends BaseController
         // 将商户类型ID转换为整数类型
         $data['mer_type_id'] = (int)$data['mer_type_id'];
         // 如果验证码验证失败,则抛出异常
-        if (!$check) throw new ValidateException('验证码不正确');
+//        if (!$check) throw new ValidateException('验证码不正确');
         // 校验商户分类是否存在
         if (!app()->make(MerchantCategoryRepository::class)->get($data['merchant_category_id'])) throw new ValidateException('商户分类不存在');
         // 如果指定的店铺类型不存在,则抛出异常