|
@@ -48,6 +48,7 @@ class store_refill_ordercontrol extends BaseSellerControl
|
|
if(empty($num) || empty($card_type)) {
|
|
if(empty($num) || empty($card_type)) {
|
|
showDialog('请选择卡类型或抢单数量','index.php?act=store_refill_order&op=index','error');
|
|
showDialog('请选择卡类型或抢单数量','index.php?act=store_refill_order&op=index','error');
|
|
}
|
|
}
|
|
|
|
+
|
|
$mod = Model('fetch_order');
|
|
$mod = Model('fetch_order');
|
|
$member_id = $_SESSION['member_id'];
|
|
$member_id = $_SESSION['member_id'];
|
|
$store_id = $_SESSION['store_id'];
|
|
$store_id = $_SESSION['store_id'];
|
|
@@ -55,6 +56,7 @@ class store_refill_ordercontrol extends BaseSellerControl
|
|
if($fetch_count >= 10) {
|
|
if($fetch_count >= 10) {
|
|
showDialog('请先处理未处理的订单','index.php?act=store_refill_order&op=index','error');
|
|
showDialog('请先处理未处理的订单','index.php?act=store_refill_order&op=index','error');
|
|
}
|
|
}
|
|
|
|
+
|
|
$res = $mod->fetch($store_id, $member_id, $card_type, $num);
|
|
$res = $mod->fetch($store_id, $member_id, $card_type, $num);
|
|
if(!empty($res)) {
|
|
if(!empty($res)) {
|
|
showDialog('抢单成功','index.php?act=store_refill_order&op=index','succ');
|
|
showDialog('抢单成功','index.php?act=store_refill_order&op=index','succ');
|