diff --git a/backstage/application/backstage/models/User_model.php b/backstage/application/backstage/models/User_model.php index e05046b..fb1c6d4 100644 --- a/backstage/application/backstage/models/User_model.php +++ b/backstage/application/backstage/models/User_model.php @@ -569,7 +569,7 @@ class User_model extends CI_Model // $XJ_RECHARGE_TYPE = unserialize($XJ_RECHARGE_TYPE['value']); $recharge_fund_type = ""; if ($v['recharge_fund_type']!=0) $recharge_fund_type = $v['recharge_fund_type']-1; - else $recharge_fund_type = 1; + else $recharge_fund_type = 0; $recharge_fund_type = isset($XJ_RECHARGE_TYPE[$recharge_fund_type]) ? $XJ_RECHARGE_TYPE[$recharge_fund_type] : ''; // if ($v['recharge_fund_type'] == 0) $recharge_fund_type // if($v['recharge_fund_type'] == 1){ @@ -588,12 +588,15 @@ class User_model extends CI_Model }else{ $account = round(doubleval($v['account'])*100)/100;; } - $account_list_new[$account_name][$v['supplier_id']."_".$recharge_fund_type['type_name']] = array( + $recharge_fund_type_name = ""; + if($recharge_fund_type!=0) $recharge_fund_type_name = isset($recharge_fund_type['type_name']) ? $recharge_fund_type['type_name'] : ''; + + $account_list_new[$account_name][$v['supplier_id']."_".$recharge_fund_type_name] = array( 'name' => $account_name, 'class' => $account_type, 'icon' => $icon, 'supplier_name' => $v['supplier_name'], - 'recharge_fund_type' => $recharge_fund_type['type_name'], + 'recharge_fund_type' => $recharge_fund_type_name, 'account' => $account, ); }