|
@@ -36,7 +36,7 @@ class proxy
|
|
|
$quantity = 1;
|
|
|
|
|
|
refill\util::push_queue_order($mchid,$mch_order,ORDER_STATE_SEND);
|
|
|
- Model('refill_order')->add_detail($mchid,$mch_order,$params,ORDER_STATE_SEND);
|
|
|
+ Model('refill_order')->edit_detail($mchid,$mch_order,['order_state' => ORDER_STATE_SEND]);
|
|
|
|
|
|
$first_comit = false;
|
|
|
if($card_type == 0)
|
|
@@ -144,7 +144,7 @@ class proxy
|
|
|
$quantity = 1;
|
|
|
|
|
|
refill\util::push_queue_order($mchid,$mch_order,ORDER_STATE_SEND);
|
|
|
- Model('refill_order')->add_detail($mchid,$mch_order,$params,ORDER_STATE_SEND);
|
|
|
+ Model('refill_order')->edit_detail($mchid,$mch_order,['order_state' => ORDER_STATE_SEND]);
|
|
|
|
|
|
$first_comit = false;
|
|
|
if($card_type == 0)
|
|
@@ -242,7 +242,7 @@ class proxy
|
|
|
'third_card_type' => $third_card_type];
|
|
|
|
|
|
refill\util::push_queue_order($mchid,$mch_order,ORDER_STATE_SEND);
|
|
|
- Model('refill_order')->add_detail($mchid,$mch_order,$params,ORDER_STATE_SEND);
|
|
|
+ Model('refill_order')->edit_detail($mchid,$mch_order,['order_state' => ORDER_STATE_SEND]);
|
|
|
refill\util::incr_user_commit($mchid,$card_type,$amount,$org_quality);
|
|
|
|
|
|
[$errcode, $errmsg, $order_id, $neterr,$net_errno] = refill\RefillFactory::instance()->add($mchid, $buyer_id, $amount, $card_no,
|