haru haru před 2 roky
rodič
revize
ed7d009bea

+ 6 - 4
admin/control/refill_order_manual.php

@@ -407,8 +407,9 @@ class refill_order_manualControl extends SystemControl
 
     public function order_cancel_disposeOp()
     {
-        $order_id = $_GET['order_id'];
-        $condition['refill_order.order_id'] = ['in',$order_id];
+        $order_ids = $_GET['order_ids'];
+        $order_ids = explode(',', $order_ids);
+        $condition['refill_order.order_id'] = ['in',$order_ids];
 
         $order_list = Model('refill_order')->getMerchantOrderList($condition,1000,0,'refill_order.*,vr_order.order_state');
         foreach ($order_list as $order) {
@@ -478,8 +479,9 @@ class refill_order_manualControl extends SystemControl
 
     public function set_next_orderOp()
     {
-        $order_id = $_GET['order_id'];
-        $condition['refill_order.order_id'] = ['in',$order_id];
+        $order_ids = $_GET['order_ids'];
+        $order_ids = explode(',', $order_ids);
+        $condition['refill_order.order_id'] = ['in',$order_ids];
 
         $order_list = Model('refill_order')->getMerchantOrderList($condition,1000,0,'refill_order.*,vr_order.order_state');
         foreach ($order_list as $order) {

+ 3 - 3
admin/templates/default/set.cancel.order.php

@@ -188,7 +188,7 @@
                     <td class="align-center">
                         <input type="hidden" value="<?php echo $order['can_cancel'];?>">
                         <?php if($order['can_cancel']){?>
-                        <a href="index.php?act=refill_order_manual&op=order_cancel_dispose&order_id=<?php echo $order['order_id']; ?>" id="hdFail">
+                        <a href="index.php?act=refill_order_manual&op=order_cancel_dispose&order_ids=<?php echo $order['order_id']; ?>" id="hdFail">
                         拦截</a>
                         <?php }?>
                     </td>
@@ -272,9 +272,9 @@
                 let number = Number(strr);
                 if (isNaN(number)) {
                     let strrr = str.substring(1, str.length);
-                    window.location.href = `index.php?act=refill_order_manual&op=order_cancel_dispose&order_id= ${strrr ? strrr : ''}`
+                    window.location.href = `index.php?act=refill_order_manual&op=order_cancel_dispose&order_ids= ${strrr ? strrr : ''}`
                 } else if(!isNaN(number) && str !== '') {
-                    window.location.href = `index.php?act=refill_order_manual&op=order_cancel_dispose&order_id= ${str ? str : ''}`
+                    window.location.href = `index.php?act=refill_order_manual&op=order_cancel_dispose&order_ids= ${str ? str : ''}`
                 } else {
                     layer.msg('请还没有任何操作,请先选择');
                 }

+ 3 - 3
admin/templates/default/transfer.order.php

@@ -159,7 +159,7 @@
                     <td class="align-center"><?php echo orderState($order); ?></td>
                     <td class="align-center">
                         <input type="hidden" value="<?php echo $order['can_cancel'];?>">
-                        <a href="index.php?act=refill_order_manual&op=set_next_order&order_id=<?php echo $order['order_id']; ?>" id="hdFail">
+                        <a href="index.php?act=refill_order_manual&op=set_next_order&order_ids=<?php echo $order['order_id']; ?>" id="hdFail">
                             拦截转快充</a>
                     </td>
                 </tr>
@@ -250,9 +250,9 @@
                 let number = Number(strr);
                 if (isNaN(number)) {
                     let strrr = str.substring(1, str.length);
-                    window.location.href = `index.php?act=refill_order_manual&op=set_next_order&order_id= ${strrr ? strrr : ''}`
+                    window.location.href = `index.php?act=refill_order_manual&op=set_next_order&order_ids= ${strrr ? strrr : ''}`
                 } else if(!isNaN(number) && str !== '') {
-                    window.location.href = `index.php?act=refill_order_manual&op=set_next_order&order_id= ${str ? str : ''}`
+                    window.location.href = `index.php?act=refill_order_manual&op=set_next_order&order_ids= ${str ? str : ''}`
                 } else {
                     layer.msg('请还没有任何操作,请先选择');
                 }