diff --git a/app/czg/controller/AnnouncementController.php b/app/czg/controller/AnnouncementController.php index fc2ca31..85ed2e8 100644 --- a/app/czg/controller/AnnouncementController.php +++ b/app/czg/controller/AnnouncementController.php @@ -13,7 +13,7 @@ class AnnouncementController extends Backend public function list() { - $params = $this->request->param(); + $params = $this->request->get(); $where = []; if (!empty($params['title'])) { $where[] = ['title', '=', $params['title']]; diff --git a/app/czg/controller/CashController.php b/app/czg/controller/CashController.php index 4ba518d..b644c41 100644 --- a/app/czg/controller/CashController.php +++ b/app/czg/controller/CashController.php @@ -16,7 +16,7 @@ class CashController extends Backend protected array $noNeedPermission = ['statisticsIncomeMoney', 'statisticsCashMoney']; public function selectUserRechargeByUserId() { - $params = $this->request->param(); + $params = $this->request->get(); $this->successWithData(DatabaseRoute::paginateAllDb('pay_details', function ($query) use ($params) { $query->alias('s') ->leftJoin('tb_user u', 'u.user_id = s.user_id') diff --git a/app/czg/controller/UserInfoController.php b/app/czg/controller/UserInfoController.php index 600ef01..62680fb 100644 --- a/app/czg/controller/UserInfoController.php +++ b/app/czg/controller/UserInfoController.php @@ -11,7 +11,7 @@ class UserInfoController extends Backend protected array $noNeedLogin = ['*']; public function list() { - $params = $this->request->param(); + $params = $this->request->get(); $result = DatabaseRoute::paginateAllDb('user_info', function ($query) use ($params) { if (!empty($params['phone'])) { $user = DatabaseRoute::getAllDbData('tb_user', function ($q) use ($params) { diff --git a/config/route.php b/config/route.php index 9e372d9..74f78fa 100644 --- a/config/route.php +++ b/config/route.php @@ -56,7 +56,7 @@ Route::any('/czg/user/selectUserById', [\app\czg\app\controller\UserController:: Route::post('/czg/sys/user/delete', [\app\czg\sys\controller\UserController::class, 'delete']); - +Route::any('/czg/common/type/{num}', [\app\czg\controller\CommonController::class, 'type']); Route::any('/czg/user/{id}', [\app\czg\user\controller\UserController::class, 'getuserinfo']);