From b0225a3e4daa080cc064155c94b91046840d9304 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 12 Jan 2024 10:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/merchant/MerchantIntentionRepository.php | 2 +- app/controller/api/store/merchant/MerchantIntention.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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){