支付成功添加商家收款短信通知
This commit is contained in:
parent
a290f9ad36
commit
e78569ac4d
@ -230,8 +230,23 @@ class PayNotifyLogic
|
||||
if (isset($extra['transaction_id'])) {
|
||||
$d['transaction_id'] = $extra['transaction_id'];
|
||||
}
|
||||
|
||||
$result = Db::name("local_pay")->where("order_sn",$order_sn)->find();
|
||||
|
||||
$local_store = Db::name('local_store')->where(['lstore_id' => $result['local_id']])->find();
|
||||
if ($local_store['empowerPhone']) {
|
||||
event('Notice', [
|
||||
'scene' => NoticeEnum::LOCAL_SHOP_COLLECTION_NOTICE,
|
||||
'mobile' => $local_store['empowerPhone'],
|
||||
'params' => [
|
||||
'user_id' => $local_store['user_id'],
|
||||
'money' => $result['order_amount'],
|
||||
'time' => date("Y-m-d H:i:s"),
|
||||
'order' => $order_sn,
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
if($result != null){
|
||||
$d['pay_time'] = date("Y-m-d H:i:s");
|
||||
$d['pay_status'] = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user