diff --git a/Application/Admin/Conf/config.php b/Application/Admin/Conf/config.php index e90a461e2..f9d701ed4 100644 --- a/Application/Admin/Conf/config.php +++ b/Application/Admin/Conf/config.php @@ -118,6 +118,7 @@ return array( 'SUBSITE_TABLE'=>[ "tab_spend", "sys_auth_group", - "tab_index_chart" + "tab_index_chart", + "tab_deposit" ] ); \ No newline at end of file diff --git a/Application/Admin/Controller/AdminController.class.php b/Application/Admin/Controller/AdminController.class.php index 412a80191..c74e8a4e6 100644 --- a/Application/Admin/Controller/AdminController.class.php +++ b/Application/Admin/Controller/AdminController.class.php @@ -406,6 +406,7 @@ class AdminController extends Controller { } session('ADMIN_MENU_LIST.'.$controller,$menus); } + return $menus; } diff --git a/Application/Admin/Model/DepositModel.class.php b/Application/Admin/Model/DepositModel.class.php index 4370db4f0..08a0a3209 100644 --- a/Application/Admin/Model/DepositModel.class.php +++ b/Application/Admin/Model/DepositModel.class.php @@ -36,6 +36,11 @@ class DepositModel extends Model { public function __construct($name = '', $tablePrefix = '', $connection = '') { /* 设置默认的表前缀 */ $this->tablePrefix ='tab_'; + if(is_subsiteTable("tab_spend")){ + //修改连接 + $this->connection = SUBSITE_DB; + $connection = SUBSITE_DB; + } /* 执行构造方法 */ parent::__construct($name, $tablePrefix, $connection); } diff --git a/Application/Admin/View/Deposit/lists.html b/Application/Admin/View/Deposit/lists.html index 99256ec9d..e268f6b63 100644 --- a/Application/Admin/View/Deposit/lists.html +++ b/Application/Admin/View/Deposit/lists.html @@ -28,10 +28,12 @@
@@ -212,7 +214,7 @@