From 466593f0c266409167870fcf8310fc5ed0e8a339 Mon Sep 17 00:00:00 2001 From: weiz Date: Thu, 16 Nov 2023 17:08:02 +0800 Subject: [PATCH] update --- app/api/controller/LoginController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/controller/LoginController.php b/app/api/controller/LoginController.php index a73cf17..897b212 100644 --- a/app/api/controller/LoginController.php +++ b/app/api/controller/LoginController.php @@ -64,14 +64,15 @@ class LoginController extends BaseApiController //登录 public function login(): \think\response\Json { - $params = $this->request->post(['account','password']); - if(empty($params['account']) || empty($params['password'])){ + $params = $this->request->post(['account','password','register_id']); + if(empty($params['account']) || empty($params['password']) || empty($params['register_id'])){ return $this->fail('参数错误'); } //调用供销系统登录接口 $result = curl_post(env('project.worker_domain').'/api/login/account',[ 'account' => $params['account'], 'password' => $params['password'], + 'register_id' => $params['register_id'], 'terminal' => 6, 'scene' => 1, ]);