From d04a104460889d2d2bfdd46ae4875b15218da75a Mon Sep 17 00:00:00 2001 From: liuxiaoquan Date: Tue, 14 Mar 2023 16:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A5=E9=A9=BB=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=BC=80=E6=8E=A8=E9=80=81=E5=AE=A2=E6=9C=8D=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/merchant/MerchantIntention.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/app/common/model/merchant/system/merchant/MerchantIntention.php b/app/common/model/merchant/system/merchant/MerchantIntention.php index 2660259..879c21c 100644 --- a/app/common/model/merchant/system/merchant/MerchantIntention.php +++ b/app/common/model/merchant/system/merchant/MerchantIntention.php @@ -194,6 +194,36 @@ class MerchantIntention extends Model // 创建帐号 $merchant = app()->make(Merchant::class)->createMerchant($merData); $data['mer_id'] = $merchant->mer_id; + + // 写入商户客服表 + $store_service_data['mer_id'] = $merchant->mer_id; + $store_service_data['uid'] = $intention['uid']; + $store_service_data['avatar'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/1b716202302251108516996.png'; + $store_service_data['nickname'] = $intention['mer_name']; + $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]); }