Skip to content

Commit

Permalink
Merge pull request #191 from huankong233/dev
Browse files Browse the repository at this point in the history
[*] 检查账户是否是企业账户
  • Loading branch information
huankong233 committed Aug 22, 2024
2 parents 7f35c51 + 5d117c6 commit f029c36
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MAIL_FROM_NAME=Example
MAIL_TO_ADDRESS=[email protected]
MAIL_TO_NAME=Example

_94LIST_VERSION=1.3.34
_94LIST_VERSION=1.3.35
_94LIST_SLEEP=3
_94LIST_MAX_ONCE=20
_94LIST_PASSWORD=""
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 2024

### 08-22 v1.3.35

- [*] 检查账户是否是企业账户

### 08-21 v1.3.34

- [+] 增加新账号类型
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public static function _getAccountItems($type, $cookie)
}

if (isset($response["errmsg"]) && $response["errmsg"] === "Invalid Bduss") return ResponseController::accountExpired();
if (!isset($response["data"][0]["cid"])) return ResponseController::accountIsNotEnterprise();
$cid = $response["data"][0]["cid"];
}

Expand Down
5 changes: 5 additions & 0 deletions app/Http/Controllers/ResponseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,9 @@ public static function accountCanNotBeDeleted()
{
return self::response(10067, 500, "自带账户禁止删除");
}

public static function accountIsNotEnterprise()
{
return self::response(10068, 500, "获取账户信息失败或账户非企业用户");
}
}
2 changes: 1 addition & 1 deletion config/94list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fake_wx_user_agent" => "Mozilla/5.0 (Linux; Android 7.1.1; MI 6 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043807 Mobile Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN miniProgram",
"fake_cookie" => "BAIDUID=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; BAIDUID_BFESS=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; newlogin=1",

"version" => "1.3.34",
"version" => "1.3.35",
"sleep" => (int)env("_94LIST_SLEEP", 3),
"max_once" => (int)env("_94LIST_MAX_ONCE", 20),
"password" => env("_94LIST_PASSWORD", ""),
Expand Down

0 comments on commit f029c36

Please sign in to comment.