Merge pull request #3 from earthjasonlin/main

update appversion
This commit is contained in:
多玩幻灵qwq 2023-02-03 12:19:29 +08:00 committed by GitHub
commit 50b4c37092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 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,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://api-cloudgame-static.mihoyo.com/hk4e_cg_cn/gamer/api/getFunctionShieldNew?client_type=1'
// 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,{

@ -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.package_version
log.info(`获取成功!当前版本号:${appversion}`)
var successNum = 0,totalNum = 0;
for(key in configs) {