mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-23 19:29:48 +00:00
修复重复登录覆盖token的问题
This commit is contained in:
1 parent
e3fc2e3e37
commit
e97dc3cb3b
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -21,7 +21,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
|
||||
compileOnly 'net.md-5:bungeecord-api:1.16-R0.4-SNAPSHOT'
|
||||
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
|
||||
dependencies { compile fileTree(dir:'lib',include:['*.jar'])}
|
||||
|
||||
@@ -31,9 +31,11 @@ public class API1 implements IMusicAPI {
|
||||
public API1() {
|
||||
AllMusic.log.info("§d[AllMusic]§e使用外置本地爬虫");
|
||||
if (!AllMusic.getConfig().getLoginPass().isEmpty() && !AllMusic.getConfig().getLoginUser().isEmpty()) {
|
||||
HttpGet.realData(AllMusic.getConfig().getMusic_Url() + "/login/cellphone?phone="
|
||||
if (!AllMusic.getConfig().getLoginUser().contains("@"))
|
||||
HttpGet.realData(AllMusic.getConfig().getMusic_Url() + "/login/cellphone?phone="
|
||||
+ AllMusic.getConfig().getLoginUser() + "&password=", AllMusic.getConfig().getLoginPass());
|
||||
HttpGet.realData(AllMusic.getConfig().getMusic_Url() + "/login?email="
|
||||
else
|
||||
HttpGet.realData(AllMusic.getConfig().getMusic_Url() + "/login?email="
|
||||
+ AllMusic.getConfig().getLoginUser() + "&password=", AllMusic.getConfig().getLoginPass());
|
||||
}
|
||||
Res res = HttpGet.realData(AllMusic.getConfig().getMusic_Url(), "");
|
||||
|
||||
Reference in new issue
Block a user