update
This commit is contained in:
parent
9a500040b6
commit
466593f0c2
|
@ -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,
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue