Bläddra i källkod

admin refill_order manual notify update

xiaoyu 3 år sedan
förälder
incheckning
505ac02833

+ 2 - 2
admin/control/refill_order_manual.php

@@ -58,11 +58,11 @@ class refill_order_manualControl extends SystemControl
 
         if ($type == 'success') {
             $logic_vr_order->changeOrderStateSuccess($order_id);
-            $mod_refill->edit(['order_id' => $order_id], ['notify_state' =>1, 'notify_time' => time()]);
+            $mod_refill->edit($order_id, ['notify_state' =>1, 'notify_time' => time()]);
             QueueClient::push("NotifyMerchantComplete", ['order_id' => $order_id, 'manual' => true]);
         } elseif ($type == 'cancel') {
             $logic_vr_order->changeOrderStateCancel($order_info, '', "充值失败");
-            $mod_refill->edit(['order_id' => $order_id], ['notify_state' =>1, 'notify_time' => time()]);
+            $mod_refill->edit($order_id, ['notify_state' =>1, 'notify_time' => time()]);
             QueueClient::push("NotifyMerchantComplete", ['order_id' => $order_id, 'manual' => true]);
         } else {
             showMessage('手动操作类型错误', 'index.php?act=refill_order&op=index');

+ 0 - 7
admin/templates/default/refill.order.send.index.php

@@ -237,14 +237,7 @@
                     <td class="w144 align-center">
                         <a href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
                             回调</a>
-                        |
-                        <a href="index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id=<?php echo $order['order_id']; ?>">
-                            手动失败</a>
-                        |
-                        <a href="index.php?act=merchant&op=notify_manual_merchant&type=success&order_id=<?php echo $order['order_id']; ?>">
-                            手动成功</a>
                     </td>
-
                 </tr>
             <?php } ?>
         <?php } else { ?>