diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index 0ee93605..8b9ed3c1 100755 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -203,7 +203,7 @@ class MerchantIntentionRepository extends BaseRepository Db::name('store_service')->insert($store_service_data); } if ($intention['type'] == 2) { - $merId = MerchantIntention::where('uid', $intention['uid'])->where('status', 1)->value('mer_id'); + $merId = Merchant::where('uid', $intention['uid'])->value('mer_id'); if (!empty($merId)) { Merchant::where('mer_id', $merId)->update(['business_status' => 2, 'mer_settlement_agree_status' => 1]); }