update appversion

This commit is contained in:
Zichao Lin 2023-01-18 09:55:25 +08:00
parent 4f56b114b1
commit 30b23c85cb
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
3 changed files with 4 additions and 3 deletions

3
.gitignore vendored

@ -1,3 +1,4 @@
configs/
node_modules/
pnpm-lock.yaml
pnpm-lock.yaml
yarn.lock

@ -6,7 +6,7 @@ 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://api-cloudgame-static.mihoyo.com/hk4e_cg_cn/gamer/api/getFunctionShieldNew?client_type=1'
exports.AppVersionURL = 'https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/resource?key=eYd89JmJ&launcher_id=18'
exports.Notification = function(header) {
let tmp = JSON.parse(request("GET",exports.NotificationURL,{

@ -48,7 +48,7 @@ log.info("检测完毕!")
log.info("正在获取版本号")
var appversion = AppVersion();
appversion = appversion.data.config["cg.key_function_video_mode"].versions["0"]
appversion = appversion.data.game.latest.version
log.info(`获取成功!当前版本号:${appversion}`)
var successNum = 0,totalNum = 0;
for(key in configs) {