From 0f6bc586d2728158ccff406f1b223377cb64f906 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 1 Mar 2023 16:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B4=A2=E5=8A=A1=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/accounts/Accounts.php | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 app/admin/controller/accounts/Accounts.php diff --git a/app/admin/controller/accounts/Accounts.php b/app/admin/controller/accounts/Accounts.php new file mode 100644 index 0000000..2f0422c --- /dev/null +++ b/app/admin/controller/accounts/Accounts.php @@ -0,0 +1,51 @@ +adminInfo = get_login_admin(); + } + + /** + * 提现管理 + * + */ + public function extract() + { + $total=0; + $list=[]; + $brokerage_price=0; + $find=Db::table('fa_szxc_information_useraddress')->where('user_id',$this->adminInfo['id'])->value('street_id'); + if ($find!=0) { + $brokerage_price=Db::connect('shop')->name('store_order_region_commission')->where('street_id',$find)->sum('commission_rate'); + } + if (request()->isAjax()) { + $params= get_params(); + if ($find!=0){ + $list=Db::connect('shop')->name('store_order_region_commission')->where('street_id',$find) + ->page($params['page']) + ->limit($params['limit']) + ->select(); + } + $result = ['total' => $total, 'data' => $list]; + return table_assign(0, '', $result); + } + View::assign('brokerage_price', $brokerage_price); + + return view(); + } +} \ No newline at end of file