diff --git a/app/adminapi/controller/shop/UserController.php b/app/adminapi/controller/shop/UserController.php new file mode 100644 index 00000000..f2ae97e4 --- /dev/null +++ b/app/adminapi/controller/shop/UserController.php @@ -0,0 +1,48 @@ +request->get(); + $result = curl_post($this->shopUrl . '/middle/user/group/lst',$params,$this->reqHeader); + if(($result['status'] ?? 500) != 200){ + return $this->fail($result['message'] ?? '非法请求'); + } + return json($result); + } + + public function labelLst(): Json + { + $params=$this->request->get(); + $result = curl_post($this->shopUrl . '/middle/user/label/lst',$params,$this->reqHeader); + if(($result['status'] ?? 500) != 200){ + return $this->fail($result['message'] ?? '非法请求'); + } + return json($result); + } + + public function lst(): Json + { + $params=$this->request->get(['nickname', 'phone', 'uid', 'group_id', 'label_id', 'sex', 'is_promoter', 'user_time_type', 'user_time', 'pay_count', 'page', 'limit']); + $result = curl_post($this->shopUrl . '/middle/user/lst',$params,$this->reqHeader); + if(($result['status'] ?? 500) != 200){ + return $this->fail($result['message'] ?? '非法请求'); + } + return json($result); + } + +} \ No newline at end of file