From 70b8cc17a410444ab739d8924f15d5783afcd8e9 Mon Sep 17 00:00:00 2001 From: fengjh5 Date: Tue, 9 Apr 2024 15:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E9=87=91=E5=85=85=E5=80=BC=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backstage/application/backstage/controllers/Recharge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backstage/application/backstage/controllers/Recharge.php b/backstage/application/backstage/controllers/Recharge.php index b4fd3f8..98193ee 100644 --- a/backstage/application/backstage/controllers/Recharge.php +++ b/backstage/application/backstage/controllers/Recharge.php @@ -947,9 +947,9 @@ class Recharge extends CI_Controller $data['moneyArr'] = explode(',', $allowInfo['value']); $data['supplierList'] = $this->tb_supplier->get_all('*', array('enabled' => 1, 'id' => $this->session->userdata("supplierId"))); $adminInfo = $this->tb_admin->get_one(array('id' => $adminId)); - $data['isSupply'] = 1; - if ($adminInfo['supply_id'] == 0 && $this->session->userdata('roleId') != 1){ - $data['isSupply'] = -1; + $data['isSupplier'] = 1; + if ($adminInfo['supplier_id'] == 0 && $this->session->userdata('roleId') != 1){ + $data['isSupplier'] = -1; } $data['supplierId'] = $this->session->userdata("supplierId"); $data['asset'] = $this->asset;