From c3b8014bbdced30d3e324d435d4cfc8f8215aafe Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 14 Sep 2023 16:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E6=88=B7=E5=85=A5?= =?UTF-8?q?=E9=A9=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/MerchantIntention.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index dcb9c582..c138d214 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -46,7 +46,7 @@ class MerchantIntention extends BaseController return app('json')->fail('未开启商户入驻'); } if ($this->userInfo) $data['uid'] = $this->userInfo->uid; - if ($this->userInfo->phone && ($this->userInfo->phone != $data['phone'] ?? '')) { + if ($this->userInfo->phone && ($this->userInfo->phone != ($data['phone'] ?? ''))) { throw new ValidateException('联系电话和注册手机不一致'); } $intentionInfo = Db::name('merchant_intention')->where('social_credit_code', $data['social_credit_code'])->where('status', '<>', 2)->find(); @@ -136,7 +136,7 @@ class MerchantIntention extends BaseController if (!systemConfig('mer_intention_open')) { return app('json')->fail('未开启商户入驻'); } - if ($this->userInfo->phone && ($this->userInfo->phone != $data['phone'] ?? '')) { + if ($this->userInfo->phone && ($this->userInfo->phone != ($data['phone'] ?? ''))) { throw new ValidateException('联系电话和注册手机不一致'); } $intentionInfo = Db::name('merchant_intention')->where('social_credit_code', $data['social_credit_code'])->where('status', '<>', 2)->find();