Skip to content

Commit

Permalink
更新app接口
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Jul 27, 2023
1 parent 6361f8c commit 5652126
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Url2 = "https://www.jmapibranch3.cc" # 域名
PicUrl2 = "https://cdn-msp.jmapiproxy2.cc" # 域名

Url2List = ["https://www.asjmapihost.cc", "https://www.jmapibranch1.cc", "https://www.jmapibranch2.cc", "https://www.jmapibranch3.cc"]
Url2List = ["https://www.jmapinode1.cc", "https://www.jmapinode2.cc", "https://www.jmapinode3.cc", "https://www.jmapibranch2.cc"]
PicUrlList = ["https://cdn-msp.jmapiproxy1.cc", "https://cdn-msp.jmapiproxy2.cc", "https://cdn-msp.jmapiproxy3.cc", "https://cdn-msp.jmapiproxy4.cc"]
Now = int(time.time())
ProxyApiDomain = "api.bika.life"
Expand Down Expand Up @@ -42,9 +42,9 @@
UpdateUrl3Api = "https://api.fastgit.xyz/repos/tonquer/JMComic-qt/releases"
UpdateUrl3Back = "https://hub.fastgit.xyz/tonquer/JMComic-qt"

UpdateVersion = "v1.1.2"
RealVersion = "v1.1.2"
VersionTime = "2023-7-22"
UpdateVersion = "v1.1.3"
RealVersion = "v1.1.3"
VersionTime = "2023-7-27"

Waifu2xVersion = "1.1.6"
LoginUserName = ""
Expand Down
8 changes: 4 additions & 4 deletions src/server/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def GetHeader(self, _url: str, method: str) -> dict:
token = hashlib.md5(param.encode("utf-8")).hexdigest()

header = {
"tokenparam": "{},1.5.5".format(self.now),
"tokenparam": "{},1.5.7".format(self.now),
"token": token,
"user-agent": "okhttp/3.12.1",
"user-agent": "Mozilla/5.0 (Linux; Android 7.1.2; DT1901A Build/N2G47O; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36",
"accept-encoding": "gzip",
}
if method == "POST":
Expand All @@ -77,9 +77,9 @@ def GetHeader2(self, _url: str, method: str) -> dict:
token = hashlib.md5(param.encode("utf-8")).hexdigest()

header = {
"tokenparam": "{},1.5.2".format(self.now),
"tokenparam": "{},1.5.7".format(self.now),
"token": token,
"user-agent": "okhttp/3.12.1",
"user-agent": "Mozilla/5.0 (Linux; Android 7.1.2; DT1901A Build/N2G47O; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36",
"accept-encoding": "gzip",
}
if method == "POST":
Expand Down

0 comments on commit 5652126

Please sign in to comment.