ayHaru пре 4 година
родитељ
комит
0e1b659caf
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      admin/control/merchant.php

+ 6 - 0
admin/control/merchant.php

@@ -959,8 +959,14 @@ class merchantControl extends SystemControl
         }
         $logic_vr_order = Logic("vr_order");
         if($type == 'success') {
+            if($order_info['order_state'] == ORDER_STATE_CANCEL){
+                showMessage('此订单状态已为已取消,不可手动成功。', 'index.php?act=merchant&op=refill_order');
+            }
             $logic_vr_order->changeOrderStateSuccess($order_id);
         }elseif ($type == 'cancel') {
+            if($order_info['order_state'] == ORDER_STATE_SUCCESS){
+                showMessage('此订单状态已为交易完成,不可手动失败。', 'index.php?act=merchant&op=refill_order');
+            }
             $logic_vr_order->changeOrderStateCancel($order_info, '', "后台手动回调通知失败.");
         }else {
             showMessage('手动操作类型错误', 'index.php?act=merchant&op=refill_order');