From 5a7e88c25538609e0ba5a88a34a8c4d1f26d913a Mon Sep 17 00:00:00 2001 From: fengjh5 Date: Tue, 21 May 2024 09:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=94=A8=E6=88=B7=E9=92=B1?= =?UTF-8?q?=E5=8C=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backstage/application/backstage/models/User_model.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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, ); }