Your Name 3 years ago
parent
commit
d8603806c8
2 changed files with 2 additions and 1 deletions
  1. 1 1
      learn/active/database/order.php
  2. 1 0
      learn/active/src/Home.php

+ 1 - 1
learn/active/database/order.php

@@ -4,7 +4,7 @@ $excel[] = array('数据导出','数据导出','active/lib/excel.out_active_orde
 $list_button = array();
 $list_button = array();
 if (Dever::load('manage/auth')->checkFunc('active.order', 'editRefund', '全额退款')) {
 if (Dever::load('manage/auth')->checkFunc('active.order', 'editRefund', '全额退款')) {
     // $list_button['fast'] = array('退款', '"info_refund&project=active&search_option_order_id={id}"');
     // $list_button['fast'] = array('退款', '"info_refund&project=active&search_option_order_id={id}"');
-    $list_button['oper'] = array('全额退款', '"active/lib/manage.refund?id={id}"', '{status} == 2');
+    $list_button['oper'] = array('全额退款', '"active/lib/manage.refund?id={id}"', '{status} == 2&&{code_num}<0');
 }
 }
 $list_button['list'] = array('查看详情','"info_code&project=active&id={id}&page_type=1&[refer]"');
 $list_button['list'] = array('查看详情','"info_code&project=active&id={id}&page_type=1&[refer]"');
 $pay_type = array
 $pay_type = array

+ 1 - 0
learn/active/src/Home.php

@@ -66,6 +66,7 @@ Class Home extends Core
 		}
 		}
 		$this->data['user'] = $this->user;
 		$this->data['user'] = $this->user;
 		$member = Dever::load('active/lib/user')->agent($this->data['user']);
 		$member = Dever::load('active/lib/user')->agent($this->data['user']);
+		$this->data['user']['mid'] = -1;
 		if ($member) {
 		if ($member) {
 			$this->data['user']['mid'] = $member['id'];
 			$this->data['user']['mid'] = $member['id'];
 		}
 		}