From c0f71cf4a6bbfac629f1a528699097410ece1546 Mon Sep 17 00:00:00 2001 From: codeliu <1873441552@qq.com> Date: Sat, 23 Mar 2024 09:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E6=88=B7=E6=9B=B4?= =?UTF-8?q?=E6=9B=BF=E8=BA=AB=E4=BB=BD=E7=9A=84=E5=BA=97=E9=93=BA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/merchant/MerchantIntentionRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index 04513bb2..616d09ba 100644 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -149,7 +149,8 @@ class MerchantIntentionRepository extends BaseRepository $wholesale = 2; } if ($wholesale) { - Merchant::getDB()->where('mer_id',$check)->update(['wholesale'=>$wholesale]); + Merchant::getDB()->where('mer_id',$check) + ->update(['wholesale'=>$wholesale,'type_id'=>$intention->mer_type_id]); } }else{