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;