update appversion url
update appversion url to the official cloud game update check url
This commit is contained in:
parent
30b23c85cb
commit
d7961d4d03
@ -6,7 +6,8 @@ const nodemailer = require('nodemailer')
|
||||
exports.NotificationURL = 'https://api-cloudgame.mihoyo.com/hk4e_cg_cn/gamer/api/listNotifications?status=NotificationStatusUnread&type=NotificationTypePopup&is_sort=true'
|
||||
exports.WalletURL = 'https://api-cloudgame.mihoyo.com/hk4e_cg_cn/wallet/wallet/get'
|
||||
exports.AnnouncementURL = 'https://api-cloudgame.mihoyo.com/hk4e_cg_cn/gamer/api/getAnnouncementInfo'
|
||||
exports.AppVersionURL = 'https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/resource?key=eYd89JmJ&launcher_id=18'
|
||||
// Here must be an earlier version so that the response won't be null
|
||||
exports.AppVersionURL = 'https://api-takumi.mihoyo.com/ptolemaios/api/getLatestRelease?app_id=1953443910&app_version=3.3.0&channel=mihoyo'
|
||||
|
||||
exports.Notification = function(header) {
|
||||
let tmp = JSON.parse(request("GET",exports.NotificationURL,{
|
||||
|
2
index.js
2
index.js
@ -48,7 +48,7 @@ log.info("检测完毕!")
|
||||
|
||||
log.info("正在获取版本号")
|
||||
var appversion = AppVersion();
|
||||
appversion = appversion.data.game.latest.version
|
||||
appversion = appversion.data.package_version
|
||||
log.info(`获取成功!当前版本号:${appversion}`)
|
||||
var successNum = 0,totalNum = 0;
|
||||
for(key in configs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user