From b7b43001bd9303cc2cb605a91ce17f3287ed3ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A1=83?= <1098598843@qq.com> Date: Thu, 9 Mar 2023 15:14:28 +0800 Subject: [PATCH] 1 --- .../merchant/MerchantIntentionRepository.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index ffca221a..7df87be1 100644 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -169,9 +169,27 @@ class MerchantIntentionRepository extends BaseRepository $store_service_data['account'] = $intention['phone']; $store_service_data['pwd'] = password_hash('123456', PASSWORD_BCRYPT);; $store_service_data['status'] = 1; + $store_service_data['is_open'] = 1; + $store_service_data['notify'] = 1; + $store_service_data['customer'] = 1; + $store_service_data['is_verify'] = 1; + $store_service_data['is_goods'] = 1; $store_service_data['phone'] = $intention['phone']; $store_service_data['create_time'] = date('Y-m-d H:i:s'); Db::name('store_service')->insert($store_service_data); +// topservice + $top_store_service['mer_id'] = 0; + $top_store_service['uid'] = $intention['uid']; + $top_store_service['avatar'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/1b716202302251108516996.png'; + $top_store_service['nickname'] = $intention['mer_name']; + $top_store_service['account'] = $intention['phone']; + $top_store_service['pwd'] = password_hash('123456', PASSWORD_BCRYPT);; + $top_store_service['status'] = 1; + $top_store_service['is_open'] = 1; + $top_store_service['phone'] = $intention['phone']; + $top_store_service['create_time'] = date('Y-m-d H:i:s'); + Db::name('store_service')->insert($top_store_service); + Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_SUCCESS', 'id' => $smsData]); } } else {