更新支付成功handle
This commit is contained in:
parent
25f36ba278
commit
5837d30284
@ -29,6 +29,11 @@ class paySuccessOrder
|
|||||||
$this->event = $event;
|
$this->event = $event;
|
||||||
$this->finance = [];
|
$this->finance = [];
|
||||||
$this->index = 1;
|
$this->index = 1;
|
||||||
|
//发起物流信息返回快递员手机
|
||||||
|
$logisticsPhone = $this->sendLogistics($this->event['order']['order_id'], $this->event['order']['order_sn']);
|
||||||
|
//生成用户的收货码
|
||||||
|
$this->generateLogisticsCode($this->event['order']['uid'], $this->event['order']['order_id'], $this->event['order']['order_sn'], $logisticsPhone);
|
||||||
|
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
$financialRecordRepository = app()->make(FinancialRecordRepository::class);
|
$financialRecordRepository = app()->make(FinancialRecordRepository::class);
|
||||||
@ -38,12 +43,6 @@ class paySuccessOrder
|
|||||||
if (!$merchant || $merchant['street_id'] == 0) {
|
if (!$merchant || $merchant['street_id'] == 0) {
|
||||||
throw new \Exception('商户地址不存在', 200);
|
throw new \Exception('商户地址不存在', 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
//发起物流信息返回快递员手机
|
|
||||||
$logisticsPhone = $this->sendLogistics($this->event['order']['order_id'], $this->event['order']['order_sn']);
|
|
||||||
//生成用户的收货码
|
|
||||||
$this->generateLogisticsCode($this->event['order']['uid'], $this->event['order']['order_id'], $this->event['order']['order_sn'], $logisticsPhone);
|
|
||||||
|
|
||||||
$this->streetId = $merchant['street_id'];
|
$this->streetId = $merchant['street_id'];
|
||||||
|
|
||||||
$commission_rate = ($event['order']['commission_rate'] / 100);
|
$commission_rate = ($event['order']['commission_rate'] / 100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user