This commit is contained in:
weiz 2023-11-16 17:08:02 +08:00
parent 9a500040b6
commit 466593f0c2
1 changed files with 3 additions and 2 deletions

View File

@ -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,
]);