Commit 4a89a7c2 authored by wanjilong's avatar wanjilong

add: 增加对活动Id的处理

parent 24a856ac
......@@ -67,6 +67,7 @@ class PayService
'environ'=>Application::app()->environ(),
'order_id'=>$order_id,
'goods'=>[],
'marketing'=>[],
'order_item_id'=>[],
];
......@@ -78,6 +79,9 @@ class PayService
}
$metadata['goods'][$item['goods_sku_id']] = $item['goods_num'];
if(!empty($item['marketing_id'])) {
$metadata['marketing'][$item['goods_sku_id']] = $item['marketing_id'];
}
array_push($metadata['order_item_id'], $item['order_item_id']);
}
......@@ -233,6 +237,7 @@ class PayService
'pay_order_status' => 1, //待支付确认
];
$cnt = PayOrder::update($edit, $where);
//保持幂等返回成功
if($cnt == 0) {
return ['pay_order_id' => $pay_order_id];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment