diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index 1b0eced6..36147860 100644 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -140,7 +140,7 @@ class MerchantIntentionRepository extends BaseRepository // 用户需缴纳押金 'margin' => $margin['margin'] ?? 0, 'uid' => $intention['uid'], - 'reg_admin_id' => $autoCreate ? 0: request()->adminId(), + 'reg_admin_id' => 0, 'mer_intention_id' => $id, 'is_company'=>$intention['is_company'], ]; diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index fac2a7d1..d41fadb4 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -135,7 +135,7 @@ class MerchantIntention extends BaseController if ($adminRepository->fieldExists('account', $data['phone'])) throw new ValidateException('手机号已是管理员,不可申请'); $mer_type_id=Db::name('merchant_type')->where('type_code','PersonalStore')->value('mer_type_id'); - $data['status']=1; + $data['status']=0; $data['mer_type_id']=$mer_type_id; $intention = $this->repository->create($data); if($intention){