|
@@ -1230,11 +1230,12 @@ class queueLogic
|
|
|
$amount = $this->getTopcardAmound($order['goods_id']);
|
|
|
$member_id = $order['buyer_id'];
|
|
|
$order_id = $order['order_id'];
|
|
|
+ $store_id = $order['store_id'];
|
|
|
|
|
|
$extra_info = json_decode($order['extra_info'], true);
|
|
|
$card_no = $extra_info['input']['card_no'];
|
|
|
$card_type = mtopcard\topcard_type($extra_info['input']['card_type']);
|
|
|
- $ret = mtopcard\cards_helper::reserve(mtopcard\OilCardPaper, $amount, $member_id, $card_no, $card_type, $order_id);
|
|
|
+ [$ret,$info] = mtopcard\cards_helper::reserve(mtopcard\OilCardPaper, $amount, $member_id, $card_no, $card_type, $order_id,$store_id);
|
|
|
|
|
|
$vr_order = Model();
|
|
|
$vr_order->table('vr_order')->where(['order_id' => $order_id])->update(['card_no' => $card_no]);
|
|
@@ -1248,11 +1249,13 @@ class queueLogic
|
|
|
$amount = $this->getTopcardAmound($order['goods_id']);
|
|
|
$member_id = $order['buyer_id'];
|
|
|
$order_id = $order['order_id'];
|
|
|
+ $store_id = $order['store_id'];
|
|
|
+
|
|
|
|
|
|
$extra_info = json_decode($order['extra_info'], true);
|
|
|
$card_no = $extra_info['input']['card_no'];
|
|
|
$card_type = mtopcard\topcard_type($extra_info['input']['card_type']);
|
|
|
- $ret = mtopcard\cards_helper::reserve(mtopcard\PhoneCardPaper, $amount, $member_id, $card_no, $card_type, $order_id);
|
|
|
+ [$ret,$info] = mtopcard\cards_helper::reserve(mtopcard\PhoneCardPaper, $amount, $member_id, $card_no, $card_type, $order_id, $store_id);
|
|
|
|
|
|
$vr_order = Model();
|
|
|
$vr_order->table('vr_order')->where(['order_id' => $order_id])->update(['card_no' => $card_no]);
|