mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Login.php
This commit is contained in:
parent
7bfca99306
commit
6fbc568de5
@ -30,7 +30,9 @@ class Login extends Controller
|
|||||||
*/
|
*/
|
||||||
protected function initialize()
|
protected function initialize()
|
||||||
{
|
{
|
||||||
$this->type = input('api', UserAdminService::API_TYPE_WAP);
|
$this->type = $this->request->header('api-name', input('api'));
|
||||||
|
$this->type = $this->type ?: $this->request->header('api-type');
|
||||||
|
$this->type = $this->type ?: UserAdminService::API_TYPE_WAP;
|
||||||
if (empty(UserAdminService::TYPES[$this->type])) {
|
if (empty(UserAdminService::TYPES[$this->type])) {
|
||||||
$this->error("接口支付[{$this->type}]未定义规则!");
|
$this->error("接口支付[{$this->type}]未定义规则!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user