Your Name há 2 anos atrás
pai
commit
0a9ca59596
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      learn/active/lib/Manage.php

+ 2 - 2
learn/active/lib/Manage.php

@@ -256,7 +256,7 @@ Class Manage
         if (!$info['refund_num']) {
             $info['refund_num'] = 0;
         }
-        // $no_code = $info['num'] - $use_code - $info['refund_num'];#未使用的数量
+        $tui_code = $info['num'] - $use_code - $info['refund_num'];#未使用的数量
         $no_code = $info['num'] - $use_code;#未使用的数量
         if ($info['uid'] && $info['uid'] > 0) {
             $user = Dever::db('active/user')->find($info['uid']);
@@ -418,7 +418,7 @@ Class Manage
                 );
             }
         }
-        if ($info['status'] > 1 && $no_code > 0 && $info['status'] != 3  && $active['refund_type'] == 2) {
+        if ($info['status'] > 1 && $tui_code > 0 && $info['status'] != 3  && $active['refund_type'] == 2) {
             // && time()<$active['act_start']
             if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund1', '未使用退款')) {
                 $purl = Dever::url('project/database/update?project=active&table=info_refund&search_option_price='.$active['price'].'&search_option_order_id='.$info['id'].'&col=num,order_id,price,desc', 'manage');