❯
个人中心
购物车
优惠劵
今日签到
有新私信
私信列表
搜索
扫码打开当前页
关注玩家不迷路
返回顶部
幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
-
¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!
666我看看
大佬 套件来源是多少
我看看看
更新了代码 拉一下 试一试https://ghproxy.com/https://raw.githubusercontent.com/suzhaoyong/orzScript/main/sillyGirlScript/get_epic.js
更新了代码 https://ghproxy.com/https://raw.githubusercontent.com/suzhaoyong/orzScript/main/sillyGirlScript/get_epic.js
这篇修改了一下代码 https://www.kejiwanjia.net/circle/62227.html
// [rule: epic]
// [rule: Epic]
// [cron: 30 11 * * *]
request('https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=zh-CN&;country=CN&allowCountries=CN', function (error,response, body) {
var data = JSON.parse(body)
var games = data.data.Catalog.searchStore.elements
for (i = 0; i < games.length -1 ; i ++) {
var game = games[i]
if (!game.promotions) continue;
var offer = game.promotions
var discountType = offer.promotionalOffers[0].promotionalOffers[0].discountSetting
var discountPercentage = discountType.discountPercentage
if (discountPercentage == 0) {
var title = game.title
var desp = game.description
var coverImg = game.keyImages[1].url
var shopUrl = "https://www.epicgames.com/store/zh-CN/p/" + game.productSlug
sendText("今日限免:" + title + "n" + desp + "n" + "领取地址:" + shopUrl + image(coverImg))
}
}
})
根据博主提供的代码 做了点修改 拿去用 应该没有问题
// [rule: epic]
// [rule: Epic]
// [cron: 30 11 * * *]
request('https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=zh-CN&;country=CN&allowCountries=CN', function (error,response, body) {
var data = JSON.parse(body)
var games = data.data.Catalog.searchStore.elements
for (i = 0; i < games.length -1 ; i ++) {
var game = games[i]
if (!game.promotions) continue;
var offer = game.promotions
var discountType = offer.promotionalOffers[0].promotionalOffers[0].discountSetting
var discountPercentage = discountType.discountPercentage
if (discountPercentage == 0) {
var title = game.title
var desp = game.description
var coverImg = game.keyImages[1].url
var shopUrl = "https://www.epicgames.com/store/zh-CN/p/" + game.productSlug
sendText("今日限免:" + title + "n" + desp + "n" + "领取地址:" + shopUrl + image(coverImg))
}
}
})
来看看
我的怎么没有反应?