Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
V4-china / geo=CN 环境下,每日任务(dailySet)在页面快照(RSC flight 数据)中无 offerId(offers 恒=7),
ensureOffer找不到 → 直接跳过,每日任务永远无法自动完成。修复
页面快照缺失时,回退到 App dapi 官方通道 上报:
POST prod.rewardsplatform.microsoft.com/dapi/me/activities(URLs.platform.activities,端点早已定义但从未被调用)。this.bot.accessToken(MBI_SSL scope){attributes:{offerid}, amount:1, type:101, risk_context:{}, channel:'SAAndroid', id:UUID, meta:'', country:'cn'}code===0,日志输出dapi 上报完成 | pointsGained=10验证
geo=CN 移动端实跑:
dapi 上报完成 | offerId=Gamification_DailySet_ZHCN_20261019_Child3 | pointsGained=10(其余 Child 手动确认同通道有效)。仅改动
src/functions/activities/api/UrlReward.ts一个文件。