|
@@ -28,6 +28,7 @@ class proxy
|
|
|
$mch_order = $order->mch_order();
|
|
|
$last_order_id = $order->last_order_id();
|
|
|
$order_time = $order->order_time();
|
|
|
+ $order->finish();
|
|
|
|
|
|
if ($last_order_id === 0) {
|
|
|
$order_id = refill\RefillFactory::instance()->zero_order($order, $errmsg);
|
|
@@ -127,6 +128,7 @@ class proxy
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ $order->finish();
|
|
|
refill\util::pop_queue_order($mchid, $mch_order, $order->order_time());
|
|
|
QueueClient::push("NotifyMerchantComplete", ['order_id' => $order_id, 'manual' => false]);
|
|
|
|
|
@@ -337,6 +339,7 @@ class proxy
|
|
|
$mchid = $order->mchid();
|
|
|
$mch_order = $order->mch_order();
|
|
|
$order_time = $order->order_time();
|
|
|
+ $order->finish();
|
|
|
|
|
|
refill\util::push_queue_order($mchid,$mch_order,ORDER_STATE_SEND);
|
|
|
Model('refill_order')->partition(util::part_refill($order_time))->edit_detail($mchid,$mch_order,['order_state' => ORDER_STATE_SEND]);
|