diff --git a/app/api/controller/InformationController.php b/app/api/controller/InformationController.php index b90edc704..2768cdd58 100644 --- a/app/api/controller/InformationController.php +++ b/app/api/controller/InformationController.php @@ -137,7 +137,7 @@ class InformationController extends BaseApiController public function farmerInfo(): Json { //获取参数 - $params = $this->request->get(['user_id']); + $params = $this->request->post(['user_id']); if(empty($params['user_id'])){ return $this->fail('参数错误'); }