添加入驻审核开推送客服号
This commit is contained in:
parent
4ff308f2b5
commit
d04a104460
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user