@weadmin/overseas-tool 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/overseas-api-compat/SKILL.md +14 -0
- package/.agents/skills/overseas-api-compat/prompt.md +26 -0
- package/.agents/skills/overseas-api-compat/references/api-reference.md +24 -0
- package/.agents/skills/overseas-api-compat/references/architecture.md +37 -0
- package/.agents/skills/overseas-api-compat/references/domestic-client.json +386 -0
- package/.agents/skills/overseas-api-compat/references/domestic-server.json +46 -0
- package/.agents/skills/overseas-api-compat/references/flows.json +35 -0
- package/.agents/skills/overseas-api-compat/references/official-availability.json +354 -0
- package/.agents/skills/overseas-api-compat/references/workflow.md +95 -0
- package/.agents/skills/overseas-api-compat/templates/plan.md +27 -0
- package/.agents/skills/overseas-api-compat/templates/scan.md +29 -0
- package/README.md +8 -0
- package/dist/api-panel/main.js +4 -0
- package/dist/cli/main.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/runtime-host/main.js +1 -1
- package/package.json +2 -1
- package/workers/applier/applier.js +1 -1
- package/workers/applier/meta.json +3 -3
- package/workers/glossary-translator/glossary-translator.js +1 -1
- package/workers/glossary-translator/meta.json +3 -3
- package/workers/image-scanner/image-scanner.js +1 -1
- package/workers/image-scanner/meta.json +3 -3
- package/workers/image-translator/image-translator.js +1 -1
- package/workers/image-translator/meta.json +3 -3
- package/workers/pipeline-progress/meta.json +3 -3
- package/workers/pipeline-progress/pipeline-progress.js +1 -1
- package/workers/planner/meta.json +3 -3
- package/workers/planner/planner.js +1 -1
- package/workers/scan-aggregator/meta.json +3 -3
- package/workers/scan-aggregator/scan-aggregator.js +1 -1
- package/workers/text-scanner/meta.json +3 -3
- package/workers/text-scanner/text-scanner.js +1 -1
- package/workers/text-translator/meta.json +3 -3
- package/workers/text-translator/text-translator.js +1 -1
- package/workers/translation-aggregator/meta.json +3 -3
- package/workers/translation-aggregator/translation-aggregator.js +1 -1
- package/workers/verifier/meta.json +3 -3
- package/workers/verifier/verifier.js +1 -1
- package/workers/worker-launcher/meta.json +3 -3
- package/workers/worker-launcher/worker-launcher.js +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[
|
|
2
|
+
["https://api.weixin.qq.com/cgi-bin/message/subscribe/send", "sendmessage", "发送订阅消息", "https://developers.weixin.qq.com/minigame/dev/api-backend/subscribe-message/api_sendmessage"],
|
|
3
|
+
["https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create", "createactivityid", "创建activity_id", "https://developers.weixin.qq.com/minigame/dev/api-backend/updatable-message/api_createactivityid"],
|
|
4
|
+
["https://api.weixin.qq.com/cgi-bin/message/wxopen/updatablemsg/send", "setupdatablemsg", "修改动态消息", "https://developers.weixin.qq.com/minigame/dev/api-backend/updatable-message/api_setupdatablemsg"],
|
|
5
|
+
["https://api.weixin.qq.com/cgi-bin/stable_token", "getstableaccesstoken", "获取稳定版接口调用凭据", "https://developers.weixin.qq.com/minigame/dev/api-backend/access-token/api_getstableaccesstoken"],
|
|
6
|
+
["https://api.weixin.qq.com/cgi-bin/token", "getaccesstoken", "获取接口调用凭据", "https://developers.weixin.qq.com/minigame/dev/api-backend/access-token/api_getaccesstoken"],
|
|
7
|
+
["https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode", "createqrcode", "获取小程序二维码", "https://developers.weixin.qq.com/minigame/dev/api-backend/qr-code/api_createqrcode"],
|
|
8
|
+
["https://api.weixin.qq.com/datacube/getgameanalysisdata", "analysis.getgameanalysisdata", "获取小游戏分析数据", "https://developers.weixin.qq.com/minigame/dev/api-backend/data-analysis/api_analysis.getgameanalysisdata"],
|
|
9
|
+
["https://api.weixin.qq.com/sns/jscode2session", "code2session", "小程序登录凭证校验", "https://developers.weixin.qq.com/minigame/dev/api-backend/login/api_code2session"],
|
|
10
|
+
["https://api.weixin.qq.com/tcb/cloudbasereport", "cloudbasereportapi", "云开发上报接口", "https://developers.weixin.qq.com/minigame/dev/api-backend/cloudbase/api_cloudbasereportapi"],
|
|
11
|
+
["https://api.weixin.qq.com/tcb/createsendsmstask", "createsendsmstask", "创建发短信任务", "https://developers.weixin.qq.com/minigame/dev/api-backend/cloudbase/api_createsendsmstask"],
|
|
12
|
+
["https://api.weixin.qq.com/tcb/describeextensionuploadinfo", "describeextensionuploadinfo", "描述扩展上传文件信息", "https://developers.weixin.qq.com/minigame/dev/api-backend/cloudbase/api_describeextensionuploadinfo"],
|
|
13
|
+
["https://api.weixin.qq.com/tcb/describesmsrecords", "describesmsrecords", "查询短信记录", "https://developers.weixin.qq.com/minigame/dev/api-backend/cloudbase/api_describesmsrecords"],
|
|
14
|
+
["https://api.weixin.qq.com/tcb/getstatistics", "getcloudbasestatistics", "获取云开发数据", "https://developers.weixin.qq.com/minigame/dev/api-backend/cloudbase/api_getcloudbasestatistics"],
|
|
15
|
+
["https://api.weixin.qq.com/wxa/business/gamematch/creatematchrule", "gamematch.creatematchrule", "创建对局匹配规则", "https://developers.weixin.qq.com/minigame/dev/api-backend/gamematch/api_gamematch.creatematchrule"],
|
|
16
|
+
["https://api.weixin.qq.com/wxa/business/gamematch/deletematchrule", "gamematch.deletematchrule", "删除对局匹配规则", "https://developers.weixin.qq.com/minigame/dev/api-backend/gamematch/api_gamematch.deletematchrule"],
|
|
17
|
+
["https://api.weixin.qq.com/wxa/business/gamematch/getallmatchrule", "gamematch.getallmatchrule", "获取对局匹配规则", "https://developers.weixin.qq.com/minigame/dev/api-backend/gamematch/api_gamematch.getallmatchrule"],
|
|
18
|
+
["https://api.weixin.qq.com/wxa/business/gamematch/setmatchopenstate", "gamematch.setmatchidopenstate", "修改对局规则打开状态", "https://developers.weixin.qq.com/minigame/dev/api-backend/gamematch/api_gamematch.setmatchidopenstate"],
|
|
19
|
+
["https://api.weixin.qq.com/wxa/business/gamematch/updatematchrule", "gamematch.updatematchrule", "修改对局匹配规则", "https://developers.weixin.qq.com/minigame/dev/api-backend/gamematch/api_gamematch.updatematchrule"],
|
|
20
|
+
["https://api.weixin.qq.com/wxa/business/getuserencryptkey", "getuserencryptkey", "获取用户encryptKey", "https://developers.weixin.qq.com/minigame/dev/api-backend/internet/api_getuserencryptkey"],
|
|
21
|
+
["https://api.weixin.qq.com/wxa/checksession", "checksessionkey", "检验登录态", "https://developers.weixin.qq.com/minigame/dev/api-backend/login/api_checksessionkey"],
|
|
22
|
+
["https://api.weixin.qq.com/wxa/createwxagameroom", "lock-step.creategameroom", "创建帧同步游戏房间", "https://developers.weixin.qq.com/minigame/dev/api-backend/lock-step/api_lock-step.creategameroom"],
|
|
23
|
+
["https://api.weixin.qq.com/wxa/game/cancelpay", "pay_v2.cancelpay", "退回扣除游戏币", "https://developers.weixin.qq.com/minigame/dev/api-backend/midas-payment/game_currency/api_pay_v2.cancelpay"],
|
|
24
|
+
["https://api.weixin.qq.com/wxa/game/content_spam/get_cheat_data", "getcheatdata", "获取小游戏外挂分级标签数据", "https://developers.weixin.qq.com/minigame/dev/api-backend/safety-control-capability/api_getcheatdata"],
|
|
25
|
+
["https://api.weixin.qq.com/wxa/game/content_spam/media_check_sync", "gamesecurity.mediacheck", "图片内容安全识别", "https://developers.weixin.qq.com/minigame/dev/api-backend/wxa-sec-check/api_gamesecurity.mediacheck"],
|
|
26
|
+
["https://api.weixin.qq.com/wxa/game/content_spam/msg_sec_check", "gamemsgseccheck", "文本内容安全识别", "https://developers.weixin.qq.com/minigame/dev/api-backend/wxa-sec-check/api_gamemsgseccheck"],
|
|
27
|
+
["https://api.weixin.qq.com/wxa/game/getbalance", "pay_v2.getbalance", "查询游戏币余额", "https://developers.weixin.qq.com/minigame/dev/api-backend/midas-payment/game_currency/api_pay_v2.getbalance"],
|
|
28
|
+
["https://api.weixin.qq.com/wxa/game/pay", "pay_v2.pay", "扣除游戏币", "https://developers.weixin.qq.com/minigame/dev/api-backend/midas-payment/game_currency/api_pay_v2.pay"],
|
|
29
|
+
["https://api.weixin.qq.com/wxa/game/present", "pay_v2.present", "给用户赠送游戏币", "https://developers.weixin.qq.com/minigame/dev/api-backend/midas-payment/game_currency/api_pay_v2.present"],
|
|
30
|
+
["https://api.weixin.qq.com/wxa/game/queryorderinfo", "pay_v2.queryorder", "查询订单状态", "https://developers.weixin.qq.com/minigame/dev/api-backend/midas-payment/order/api_pay_v2.queryorder"],
|
|
31
|
+
["https://api.weixin.qq.com/wxa/generate_urllink", "generateurllink", "获取加密URLLink", "https://developers.weixin.qq.com/minigame/dev/api-backend/url-link/api_generateurllink"],
|
|
32
|
+
["https://api.weixin.qq.com/wxa/generatescheme", "generatescheme", "获取加密scheme码", "https://developers.weixin.qq.com/minigame/dev/api-backend/url-scheme/api_generatescheme"],
|
|
33
|
+
["https://api.weixin.qq.com/wxa/getuserriskrank", "getuserriskrank", "获取用户安全等级", "https://developers.weixin.qq.com/minigame/dev/api-backend/safety-control-capability/api_getuserriskrank"],
|
|
34
|
+
["https://api.weixin.qq.com/wxa/getwxacode", "getqrcode", "获取小程序码", "https://developers.weixin.qq.com/minigame/dev/api-backend/qr-code/api_getqrcode"],
|
|
35
|
+
["https://api.weixin.qq.com/wxa/getwxacodeunlimit", "getunlimitedqrcode", "获取不限制的小程序码", "https://developers.weixin.qq.com/minigame/dev/api-backend/qr-code/api_getunlimitedqrcode"],
|
|
36
|
+
["https://api.weixin.qq.com/wxa/getwxagameframe", "lock-step.getgameframe", "分片拉取对局游戏帧", "https://developers.weixin.qq.com/minigame/dev/api-backend/lock-step/api_lock-step.getgameframe"],
|
|
37
|
+
["https://api.weixin.qq.com/wxa/getwxagameidentityinfo", "lock-step.getgameidentityinfo", "获取对局玩家位次信息", "https://developers.weixin.qq.com/minigame/dev/api-backend/lock-step/api_lock-step.getgameidentityinfo"],
|
|
38
|
+
["https://api.weixin.qq.com/wxa/getwxagameroominfo", "lock-step.getgameroominfo", "获取指定房间信息", "https://developers.weixin.qq.com/minigame/dev/api-backend/lock-step/api_lock-step.getgameroominfo"],
|
|
39
|
+
["https://api.weixin.qq.com/wxa/media_check_async", "mediacheckasync", "多媒体内容安全识别", "https://developers.weixin.qq.com/minigame/dev/api-backend/wxa-sec-check/api_mediacheckasync"],
|
|
40
|
+
["https://api.weixin.qq.com/wxa/query_urllink", "queryurllink", "查询加密URLLink", "https://developers.weixin.qq.com/minigame/dev/api-backend/url-link/api_queryurllink"],
|
|
41
|
+
["https://api.weixin.qq.com/wxa/queryscheme", "queryscheme", "查询scheme码", "https://developers.weixin.qq.com/minigame/dev/api-backend/url-scheme/api_queryscheme"],
|
|
42
|
+
["https://api.weixin.qq.com/wxa/remove_user_storage", "storage.removeuserstorage", "删除已上报KV数据", "https://developers.weixin.qq.com/minigame/dev/api-backend/data/api_storage.removeuserstorage"],
|
|
43
|
+
["https://api.weixin.qq.com/wxa/resetusersessionkey", "resetusersessionkey", "重置登录态", "https://developers.weixin.qq.com/minigame/dev/api-backend/login/api_resetusersessionkey"],
|
|
44
|
+
["https://api.weixin.qq.com/wxa/set_user_storage", "storage.setuserstorage", "上报用户数据", "https://developers.weixin.qq.com/minigame/dev/api-backend/data/api_storage.setuserstorage"],
|
|
45
|
+
["https://api.weixin.qq.com/wxa/setuserinteractivedata", "storage.setuserinteractivedata", "写用户关系链互动数据存储", "https://developers.weixin.qq.com/minigame/dev/api-backend/data/api_storage.setuserinteractivedata"]
|
|
46
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"client": {
|
|
3
|
+
"login": ["登录", "验证 code 缺失、游客、拒绝授权和正式账户的登录分支;涉及存档时确认游客数据合并。", "guest-login.html"],
|
|
4
|
+
"checkSession": ["登录", "附件结论为待定,公开说明标为不可用;核对实际登录链。采用服务端 checkSessionKey 时,由服务端持有 session_key 并适配请求参数。", "api.html"],
|
|
5
|
+
"createBannerAd": ["广告", "出海接入文档示例使用 wx.createCustomAd。按受支持尺寸设置 left/top/width/height,处理加载、展示失败和销毁。", "BannerAds.html", "wx.createCustomAd"],
|
|
6
|
+
"createCustomAd": ["广告", "核对常规 Banner 的尺寸或原生广告 bannerType: 'native';处理无广告及展示失败。", "BannerAds.html"],
|
|
7
|
+
"createInterstitialAd": ["广告", "检查启动时展示、加载失败及重复监听。激励插屏只有 isRewarded 与 isEnded 均为 true 才发奖,普通降级不发奖。", "InterstitialAds.html"],
|
|
8
|
+
"createRewardedVideoAd": ["广告", "核对广告位,验证完整播放、提前关闭、无填充和加载失败分支;完整播放后发放奖励。", "api-availability.html"],
|
|
9
|
+
"requestMidasPayment": ["支付", "游戏币购买链使用出海支付能力;连同价格查询、服务端余额及发货一起迁移。", "pay.html", "wx.requestGamePayment"],
|
|
10
|
+
"requestMidasPaymentGameItem": ["支付", "使用道具直购协议,核对商品、订单、推送、查单和幂等发货。", "virtual-payment.html", "wx.requestPaymentGameItem"],
|
|
11
|
+
"requestVirtualPayment": ["支付", "先分清购买游戏币还是道具直购。两种流程的商品配置、参数和发货不同。", "pay.html", "wx.requestGamePayment / wx.requestPaymentGameItem"],
|
|
12
|
+
"requestGamePayment": ["支付", "确认游戏币档位、订单唯一性、延迟到账和支付回调丢失;服务端查余额与扣币后发货。", "pay.html"],
|
|
13
|
+
"getGamePaymentProductInfo": ["支付", "用出海接口查询当地币种和展示价,并按返回值展示商品价格。", "pay.html"],
|
|
14
|
+
"requestPaymentGameItem": ["支付", "核对下单、查单、通知验签、幂等发货和取消。", "virtual-payment.html"],
|
|
15
|
+
"getLaunchOptionsSync": ["启动", "出海增加 userLocation;若业务读取地区,处理缺失及未知值。", "api-availability.html"]
|
|
16
|
+
},
|
|
17
|
+
"server": {
|
|
18
|
+
"https://api.weixin.qq.com/cgi-bin/token": ["登录", "获取调用凭证沿用国内域名。", "api.html", "supported"],
|
|
19
|
+
"https://api.weixin.qq.com/cgi-bin/stable_token": ["登录", "获取稳定调用凭证沿用国内域名。", "api.html", "supported"],
|
|
20
|
+
"https://api.weixin.qq.com/sns/jscode2session": ["登录", "换取 code 的海外请求走海外地址;国内开发工具可保留独立路由。", "api.html", "unsupported", "https://univapi.wechat.com/sns/jscode2session"],
|
|
21
|
+
"https://api.weixin.qq.com/wxa/checksession": ["登录", "出海服务端校验登录态走海外地址,按文档验证签名及参数。", "api.html", "unsupported", "https://univapi.wechat.com/wxa/checksession"],
|
|
22
|
+
"https://api.weixin.qq.com/wxa/resetusersessionkey": ["登录", "出海重置会话走海外地址,按文档确认签名和会话更新行为。", "api.html", "unsupported", "https://univapi.wechat.com/wxa/resetusersessionkey"],
|
|
23
|
+
"https://univapi.wechat.com/sns/jscode2session": ["登录", "secret 和 session_key 仅在服务端保存和使用,由服务端兑换 code。", "api.html", "supported"],
|
|
24
|
+
"https://univapi.wechat.com/wxa/checksession": ["登录", "核对签名、openid 和当前 session_key。", "api.html", "supported"],
|
|
25
|
+
"https://univapi.wechat.com/wxa/resetusersessionkey": ["登录", "处理旧会话失效及限频。", "api.html", "supported"],
|
|
26
|
+
"https://api.weixin.qq.com/wxa/set_user_storage": ["开放数据", "检查依赖设定开放数据的业务,并核对出海服务端接口。", "api.html", "unknown", "", "setUserCloudStorage"],
|
|
27
|
+
"https://api.weixin.qq.com/wxa/remove_user_storage": ["开放数据", "检查依赖清理开放数据的业务,并核对出海服务端接口。", "api.html", "unknown", "", "removeUserCloudStorage"],
|
|
28
|
+
"https://api.weixin.qq.com/wxa/game/getbalance": ["支付", "核对游戏币余额查询地址及出海签名参数。", "pay.html", "unsupported", "https://univapi.wechat.com/wxa/game/getbalance"],
|
|
29
|
+
"https://api.weixin.qq.com/wxa/game/pay": ["支付", "核对海外扣币签名、原始请求体及订单幂等。", "pay.html", "unsupported", "https://univapi.wechat.com/wxa/game/pay"],
|
|
30
|
+
"https://api.weixin.qq.com/wxa/game/present": ["支付", "核对海外赠币地址、签名、出海币种环境与订单语义。", "pay.html", "unsupported", "https://univapi.wechat.com/wxa/game/present"],
|
|
31
|
+
"https://univapi.wechat.com/wxa/game/getbalance": ["支付", "在充值和发货前确认余额,处理延迟到账。", "pay.html", "supported"],
|
|
32
|
+
"https://univapi.wechat.com/wxa/game/pay": ["支付", "扣币成功后再发货;未知结果按同一业务单号查询或重试。", "pay.html", "supported"],
|
|
33
|
+
"https://univapi.wechat.com/wxa/game/present": ["支付", "核对签名、环境、区服及赠币订单。", "pay.html", "supported"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
[
|
|
2
|
+
["addCard", "unsupported", "开放接口 > 卡券", "❌ 不可用", ""],
|
|
3
|
+
["authPrivateMessage", "unsupported", "转发", "❌ 不可用", ""],
|
|
4
|
+
["authorize", "supported", "开放接口 > 授权", "✅ 可用", ""],
|
|
5
|
+
["checkIsAddedToMyMiniProgram", "unsupported", "开放接口 > 我的小程序", "❌ 不可用", ""],
|
|
6
|
+
["checkSession", "unsupported", "开放接口 > 登录", "❌ 不可用", ""],
|
|
7
|
+
["chooseImage", "conditional", "媒体 > 图片", "⚠️ 需看上架的流量平台是否支持,如需使用该接口需做好调用失败的兜底方案", ""],
|
|
8
|
+
["chooseMedia", "conditional", "媒体 > 视频", "⚠️ 需看上架的流量平台是否支持,如需使用该接口需做好调用失败的兜底方案", ""],
|
|
9
|
+
["chooseMessageFile", "conditional", "媒体 > 图片", "⚠️ 需看上架的流量平台是否支持,如需使用该接口需做好调用失败的兜底方案", ""],
|
|
10
|
+
["clearStorage", "supported", "数据缓存", "✅ 可用", ""],
|
|
11
|
+
["clearStorageSync", "supported", "数据缓存", "✅ 可用", ""],
|
|
12
|
+
["closeBLEConnection", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
13
|
+
["closeBluetoothAdapter", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
14
|
+
["closeSocket", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
15
|
+
["compressImage", "supported", "媒体 > 图片", "✅ 可用", ""],
|
|
16
|
+
["connectSocket", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
17
|
+
["createBLEConnection", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
18
|
+
["createBLEPeripheralServer", "unsupported", "设备 > 蓝牙-低功耗外围设备", "❌ 不可用", ""],
|
|
19
|
+
["createBannerAd", "conditional", "广告", "✅ 可用,需要额外参数,见 Banner 广告接入文档", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/BannerAds.html"],
|
|
20
|
+
["createBufferURL", "supported", "数据缓存", "✅ 可用", ""],
|
|
21
|
+
["createCamera", "conditional", "媒体 > 相机", "⚠️ 需看上架的流量平台是否支持,如需使用该接口需做好调用失败的兜底方案", ""],
|
|
22
|
+
["createCanvas", "supported", "渲染 > 画布", "✅ 可用", ""],
|
|
23
|
+
["createCustomAd", "conditional", "广告", "✅ 可用,需要额外参数,见 Banner 广告接入文档", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/BannerAds.html"],
|
|
24
|
+
["createFeedbackButton", "unsupported", "开放接口 > 意见反馈", "❌ 不可用", ""],
|
|
25
|
+
["createGameClubButton", "unsupported", "开放接口 > 游戏圈", "❌ 不可用", ""],
|
|
26
|
+
["createGameRecorderShareButton", "unsupported", "游戏对局回放", "❌ 不可用", ""],
|
|
27
|
+
["createGridAd", "unsupported", "广告", "❌ 不可用", ""],
|
|
28
|
+
["createImage", "supported", "渲染 > 图片", "✅ 可用", ""],
|
|
29
|
+
["createImageData", "supported", "渲染 > 图片", "✅ 可用", ""],
|
|
30
|
+
["createInferenceSession", "unsupported", "AI > AI 推理", "❌ 不可用", ""],
|
|
31
|
+
["createInnerAudioContext", "supported", "媒体 > 音频", "✅ 可用", ""],
|
|
32
|
+
["createInterstitialAd", "conditional", "与国内有差异的接口", "新增 isRewarded 参数支持激励插屏,见 插屏广告接入文档", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/InterstitialAds.html"],
|
|
33
|
+
["createMediaAudioPlayer", "supported", "媒体 > 音频", "✅ 可用", ""],
|
|
34
|
+
["createOpenSettingButton", "unsupported", "开放接口 > 设置", "❌ 不可用", ""],
|
|
35
|
+
["createPageManager", "unsupported", "开放接口 > OPENLINK", "❌ 不可用", ""],
|
|
36
|
+
["createPath2D", "supported", "渲染 > 画布", "✅ 可用", ""],
|
|
37
|
+
["createRewardedVideoAd", "supported", "广告", "✅ 可用", ""],
|
|
38
|
+
["createStoreGift", "unsupported", "开放接口 > 微信小店", "❌ 不可用", ""],
|
|
39
|
+
["createTCPSocket", "supported", "网络 > TCP 通信", "✅ 可用", ""],
|
|
40
|
+
["createUDPSocket", "supported", "网络 > UDP 通信", "✅ 可用", ""],
|
|
41
|
+
["createUserInfoButton", "conditional", "开放接口 > 用户信息", "⚠️ 不建议使用,已不再返回信息", ""],
|
|
42
|
+
["createVKSession", "unsupported", "AI > 视觉算法", "❌ 不可用", ""],
|
|
43
|
+
["createVideo", "supported", "媒体 > 视频", "✅ 可用", ""],
|
|
44
|
+
["createVideoDecoder", "supported", "媒体 > 视频解码器", "✅ 可用", ""],
|
|
45
|
+
["createWebAudioContext", "supported", "媒体 > 音频", "✅ 可用", ""],
|
|
46
|
+
["createWorker", "supported", "Worker", "✅ 可用", ""],
|
|
47
|
+
["decode", "supported", "工具", "✅ 可用", ""],
|
|
48
|
+
["downloadFile", "supported", "网络 > 下载", "✅ 可用", ""],
|
|
49
|
+
["encode", "supported", "工具", "✅ 可用", ""],
|
|
50
|
+
["env", "supported", "基础", "✅ 可用", ""],
|
|
51
|
+
["exitChatTool", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
52
|
+
["exitMiniProgram", "supported", "跳转", "✅ 可用", ""],
|
|
53
|
+
["exitPointerLock", "supported", "渲染 > 鼠标样式", "✅ 可用", ""],
|
|
54
|
+
["exitVoIPChat", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
55
|
+
["faceDetect", "unsupported", "AI > 人脸检测", "❌ 不可用", ""],
|
|
56
|
+
["getAccountInfoSync", "supported", "开放接口 > 账号信息", "✅ 可用", ""],
|
|
57
|
+
["getAppAuthorizeSetting", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
58
|
+
["getAppBaseInfo", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
59
|
+
["getAvailableAudioSources", "supported", "媒体 > 音频", "✅ 可用", ""],
|
|
60
|
+
["getBLEDeviceCharacteristics", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
61
|
+
["getBLEDeviceRSSI", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
62
|
+
["getBLEDeviceServices", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
63
|
+
["getBLEMTU", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
64
|
+
["getBackgroundFetchData", "supported", "数据缓存 > 数据预拉取和周期性更新", "✅ 可用", ""],
|
|
65
|
+
["getBackgroundFetchToken", "supported", "数据缓存 > 数据预拉取和周期性更新", "✅ 可用", ""],
|
|
66
|
+
["getBatteryInfo", "supported", "设备 > 电量", "✅ 可用", ""],
|
|
67
|
+
["getBatteryInfoSync", "supported", "设备 > 电量", "✅ 可用", ""],
|
|
68
|
+
["getBeacons", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
69
|
+
["getBluetoothAdapterState", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
70
|
+
["getBluetoothDevices", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
71
|
+
["getChannelsLiveInfo", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
72
|
+
["getChannelsLiveNoticeInfo", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
73
|
+
["getChatToolInfo", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
74
|
+
["getClipboardData", "supported", "设备 > 剪贴板", "✅ 可用", ""],
|
|
75
|
+
["getConnectedBluetoothDevices", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
76
|
+
["getDeviceBenchmarkInfo", "unsupported", "基础 > 系统", "❌ 不可用", ""],
|
|
77
|
+
["getDeviceInfo", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
78
|
+
["getEnterOptionsSync", "supported", "基础 > 小程序 > 生命周期", "✅ 可用", ""],
|
|
79
|
+
["getExptInfoSync", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
80
|
+
["getExtConfig", "unsupported", "第三方平台", "❌ 不可用", ""],
|
|
81
|
+
["getExtConfigSync", "unsupported", "第三方平台", "❌ 不可用", ""],
|
|
82
|
+
["getFileSystemManager", "supported", "文件", "✅ 可用", ""],
|
|
83
|
+
["getFuzzyLocation", "unsupported", "位置", "❌ 不可用", ""],
|
|
84
|
+
["getGameClubData", "unsupported", "开放接口 > 游戏圈", "❌ 不可用", ""],
|
|
85
|
+
["getGameExptInfo", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
86
|
+
["getGameLogManager", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
87
|
+
["getGamePaymentProductInfo", "supported", "出海新增接口", "查询商品价格信息", ""],
|
|
88
|
+
["getGameRecorder", "unsupported", "游戏对局回放", "❌ 不可用", ""],
|
|
89
|
+
["getGameServerManager", "unsupported", "游戏服务", "❌ 不可用", ""],
|
|
90
|
+
["getGamepads", "supported", "设备 > 游戏手柄", "✅ 可用", ""],
|
|
91
|
+
["getGroupEnterInfo", "unsupported", "开放接口 > 微信群", "❌ 不可用", ""],
|
|
92
|
+
["getInferenceEnvInfo", "unsupported", "AI > AI 推理", "❌ 不可用", ""],
|
|
93
|
+
["getLaunchOptionsSync", "conditional", "与国内有差异的接口", "返回值新增 userLocation 字段,可获取用户所在地区", ""],
|
|
94
|
+
["getLocalIPAddress", "unsupported", "设备 > 网络", "❌ 不可用", ""],
|
|
95
|
+
["getLocation", "unsupported", "位置", "❌ 不可用", ""],
|
|
96
|
+
["getLogManager", "supported", "基础 > 调试 > console", "✅ 可用", ""],
|
|
97
|
+
["getMenuButtonBoundingClientRect", "supported", "界面 > 菜单", "✅ 可用", ""],
|
|
98
|
+
["getMiniReportManager", "supported", "数据分析", "✅ 可用", ""],
|
|
99
|
+
["getNetworkType", "supported", "设备 > 网络", "✅ 可用", ""],
|
|
100
|
+
["getOfficialComponentsInfo", "unsupported", "界面 > 菜单", "❌ 不可用", ""],
|
|
101
|
+
["getOpenDataContext", "unsupported", "开放接口 > 开放数据域", "❌ 不可用", ""],
|
|
102
|
+
["getPerformance", "supported", "基础 > 性能", "✅ 可用", ""],
|
|
103
|
+
["getPhoneNumber", "unsupported", "开放接口 > 用户信息", "❌ 不可用", ""],
|
|
104
|
+
["getPrivacySetting", "supported", "开放接口 > 隐私信息授权", "✅ 可用", ""],
|
|
105
|
+
["getRealtimeLogManager", "supported", "基础 > 调试 > console", "✅ 可用", ""],
|
|
106
|
+
["getRecorderManager", "unsupported", "媒体 > 录音", "❌ 不可用", ""],
|
|
107
|
+
["getScreenBrightness", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
108
|
+
["getScreenRecordingState", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
109
|
+
["getSetting", "unsupported", "开放接口 > 设置", "❌ 不可用", ""],
|
|
110
|
+
["getShareInfo", "unsupported", "转发", "❌ 不可用", ""],
|
|
111
|
+
["getStorage", "supported", "数据缓存", "✅ 可用", ""],
|
|
112
|
+
["getStorageInfo", "supported", "数据缓存", "✅ 可用", ""],
|
|
113
|
+
["getStorageInfoSync", "supported", "数据缓存", "✅ 可用", ""],
|
|
114
|
+
["getStorageSync", "supported", "数据缓存", "✅ 可用", ""],
|
|
115
|
+
["getSystemInfo", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
116
|
+
["getSystemInfoAsync", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
117
|
+
["getSystemInfoSync", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
118
|
+
["getSystemSetting", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
119
|
+
["getTextLineHeight", "supported", "渲染 > 字体", "✅ 可用", ""],
|
|
120
|
+
["getUpdateManager", "supported", "基础 > 更新", "✅ 可用", ""],
|
|
121
|
+
["getUserCryptoManager", "supported", "基础 > 加密", "✅ 可用", ""],
|
|
122
|
+
["getUserInfo", "conditional", "开放接口 > 用户信息", "⚠️ 不建议使用,已不再返回信息", ""],
|
|
123
|
+
["getUserInteractiveStorage", "unsupported", "开放接口 > 开放数据", "❌ 不可用", ""],
|
|
124
|
+
["getWeRunData", "unsupported", "开放接口 > 微信运动", "❌ 不可用", ""],
|
|
125
|
+
["getWindowInfo", "supported", "基础 > 系统", "✅ 可用", ""],
|
|
126
|
+
["hideKeyboard", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
127
|
+
["hideLoading", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
128
|
+
["hideShareMenu", "unsupported", "转发", "❌ 不可用", ""],
|
|
129
|
+
["hideToast", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
130
|
+
["initFaceDetect", "unsupported", "AI > 人脸检测", "❌ 不可用", ""],
|
|
131
|
+
["isBluetoothDevicePaired", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
132
|
+
["isChatTool", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
133
|
+
["isPointerLocked", "supported", "渲染 > 鼠标样式", "✅ 可用", ""],
|
|
134
|
+
["isVKSupport", "unsupported", "AI > 视觉算法", "❌ 不可用", ""],
|
|
135
|
+
["joinVoIPChat", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
136
|
+
["loadFont", "supported", "渲染 > 字体", "✅ 可用", ""],
|
|
137
|
+
["loadSubpackage", "supported", "基础 > 分包加载", "✅ 可用", ""],
|
|
138
|
+
["login", "conditional", "开放接口 > 登录", "✅ 可用,用户未完成平台授权时登录失败,见 游客态登录与授权弹窗", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/guest-login.html"],
|
|
139
|
+
["makeBluetoothPair", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
140
|
+
["navigateBackMiniProgram", "supported", "跳转", "✅ 可用", ""],
|
|
141
|
+
["navigateToMiniProgram", "supported", "跳转", "✅ 可用", ""],
|
|
142
|
+
["notifyBLECharacteristicValueChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
143
|
+
["notifyGroupMembers", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
144
|
+
["offAccelerometerChange", "supported", "设备 > 加速计", "✅ 可用", ""],
|
|
145
|
+
["offAddToFavorites", "unsupported", "转发", "❌ 不可用", ""],
|
|
146
|
+
["offAudioInterruptionBegin", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
147
|
+
["offAudioInterruptionEnd", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
148
|
+
["offBLECharacteristicValueChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
149
|
+
["offBLEConnectionStateChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
150
|
+
["offBLEMTUChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
151
|
+
["offBLEPeripheralConnectionStateChanged", "unsupported", "设备 > 蓝牙-低功耗外围设备", "❌ 不可用", ""],
|
|
152
|
+
["offBeaconServiceChange", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
153
|
+
["offBeaconUpdate", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
154
|
+
["offBluetoothAdapterStateChange", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
155
|
+
["offBluetoothDeviceFound", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
156
|
+
["offCompassChange", "supported", "设备 > 罗盘", "✅ 可用", ""],
|
|
157
|
+
["offCopyUrl", "unsupported", "转发", "❌ 不可用", ""],
|
|
158
|
+
["offDeviceMotionChange", "supported", "设备 > 设备方向", "✅ 可用", ""],
|
|
159
|
+
["offDeviceOrientationChange", "supported", "设备 > 转屏", "✅ 可用", ""],
|
|
160
|
+
["offError", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
161
|
+
["offGyroscopeChange", "supported", "设备 > 陀螺仪", "✅ 可用", ""],
|
|
162
|
+
["offHandoff", "unsupported", "转发", "❌ 不可用", ""],
|
|
163
|
+
["offHide", "supported", "基础 > 小程序 > 生命周期", "✅ 可用", ""],
|
|
164
|
+
["offInteractiveStorageModified", "unsupported", "开放接口 > 开放数据", "❌ 不可用", ""],
|
|
165
|
+
["offKeyDown", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
166
|
+
["offKeyUp", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
167
|
+
["offKeyboardComplete", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
168
|
+
["offKeyboardConfirm", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
169
|
+
["offKeyboardHeightChange", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
170
|
+
["offKeyboardInput", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
171
|
+
["offMemoryWarning", "supported", "设备 > 内存", "✅ 可用", ""],
|
|
172
|
+
["offMouseDown", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
173
|
+
["offMouseMove", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
174
|
+
["offMouseUp", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
175
|
+
["offNetworkStatusChange", "supported", "设备 > 网络", "✅ 可用", ""],
|
|
176
|
+
["offNetworkWeakChange", "supported", "设备 > 网络", "✅ 可用", ""],
|
|
177
|
+
["offOfficialComponentsInfoChange", "unsupported", "界面 > 菜单", "❌ 不可用", ""],
|
|
178
|
+
["offScreenRecordingStateChanged", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
179
|
+
["offShareAppMessage", "unsupported", "转发", "❌ 不可用", ""],
|
|
180
|
+
["offShareMessageToFriend", "unsupported", "转发", "❌ 不可用", ""],
|
|
181
|
+
["offShareTimeline", "unsupported", "转发", "❌ 不可用", ""],
|
|
182
|
+
["offShow", "supported", "基础 > 小程序 > 生命周期", "✅ 可用", ""],
|
|
183
|
+
["offTouchCancel", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
184
|
+
["offTouchEnd", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
185
|
+
["offTouchMove", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
186
|
+
["offTouchStart", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
187
|
+
["offUnhandledRejection", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
188
|
+
["offUserCaptureScreen", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
189
|
+
["offVoIPChatInterrupted", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
190
|
+
["offVoIPChatMembersChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
191
|
+
["offVoIPChatSpeakersChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
192
|
+
["offVoIPChatStateChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
193
|
+
["offWheel", "supported", "设备 > 滚轮", "✅ 可用", ""],
|
|
194
|
+
["offWindowResize", "supported", "界面 > 窗口", "✅ 可用", ""],
|
|
195
|
+
["offWindowStateChange", "supported", "界面 > 窗口", "✅ 可用", ""],
|
|
196
|
+
["onAccelerometerChange", "supported", "设备 > 加速计", "✅ 可用", ""],
|
|
197
|
+
["onAddToFavorites", "unsupported", "转发", "❌ 不可用", ""],
|
|
198
|
+
["onAudioInterruptionBegin", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
199
|
+
["onAudioInterruptionEnd", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
200
|
+
["onBLECharacteristicValueChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
201
|
+
["onBLEConnectionStateChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
202
|
+
["onBLEMTUChange", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
203
|
+
["onBLEPeripheralConnectionStateChanged", "unsupported", "设备 > 蓝牙-低功耗外围设备", "❌ 不可用", ""],
|
|
204
|
+
["onBackgroundFetchData", "supported", "数据缓存 > 数据预拉取和周期性更新", "✅ 可用", ""],
|
|
205
|
+
["onBeaconServiceChange", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
206
|
+
["onBeaconUpdate", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
207
|
+
["onBluetoothAdapterStateChange", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
208
|
+
["onBluetoothDeviceFound", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
209
|
+
["onCompassChange", "supported", "设备 > 罗盘", "✅ 可用", ""],
|
|
210
|
+
["onCopyUrl", "unsupported", "转发", "❌ 不可用", ""],
|
|
211
|
+
["onDeviceMotionChange", "supported", "设备 > 设备方向", "✅ 可用", ""],
|
|
212
|
+
["onDeviceOrientationChange", "supported", "设备 > 转屏", "✅ 可用", ""],
|
|
213
|
+
["onError", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
214
|
+
["onGamepadConnected", "supported", "设备 > 游戏手柄", "✅ 可用", ""],
|
|
215
|
+
["onGamepadDisconnected", "supported", "设备 > 游戏手柄", "✅ 可用", ""],
|
|
216
|
+
["onGyroscopeChange", "supported", "设备 > 陀螺仪", "✅ 可用", ""],
|
|
217
|
+
["onHandoff", "unsupported", "转发", "❌ 不可用", ""],
|
|
218
|
+
["onHide", "supported", "基础 > 小程序 > 生命周期", "✅ 可用", ""],
|
|
219
|
+
["onInteractiveStorageModified", "unsupported", "开放接口 > 开放数据", "❌ 不可用", ""],
|
|
220
|
+
["onKeyDown", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
221
|
+
["onKeyUp", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
222
|
+
["onKeyboardComplete", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
223
|
+
["onKeyboardConfirm", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
224
|
+
["onKeyboardHeightChange", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
225
|
+
["onKeyboardInput", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
226
|
+
["onMemoryWarning", "supported", "设备 > 内存", "✅ 可用", ""],
|
|
227
|
+
["onMessage", "unsupported", "开放接口 > 开放数据域", "❌ 不可用", ""],
|
|
228
|
+
["onMouseDown", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
229
|
+
["onMouseMove", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
230
|
+
["onMouseUp", "supported", "设备 > 鼠标", "✅ 可用", ""],
|
|
231
|
+
["onNeedPrivacyAuthorization", "supported", "开放接口 > 隐私信息授权", "✅ 可用", ""],
|
|
232
|
+
["onNetworkStatusChange", "supported", "设备 > 网络", "✅ 可用", ""],
|
|
233
|
+
["onNetworkWeakChange", "supported", "设备 > 网络", "✅ 可用", ""],
|
|
234
|
+
["onOfficialComponentsInfoChange", "unsupported", "界面 > 菜单", "❌ 不可用", ""],
|
|
235
|
+
["onScreenRecordingStateChanged", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
236
|
+
["onShareAppMessage", "unsupported", "转发", "❌ 不可用", ""],
|
|
237
|
+
["onShareMessageToFriend", "unsupported", "转发", "❌ 不可用", ""],
|
|
238
|
+
["onShareTimeline", "unsupported", "转发", "❌ 不可用", ""],
|
|
239
|
+
["onShow", "supported", "基础 > 小程序 > 生命周期", "✅ 可用", ""],
|
|
240
|
+
["onSocketClose", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
241
|
+
["onSocketError", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
242
|
+
["onSocketMessage", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
243
|
+
["onSocketOpen", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
244
|
+
["onTouchCancel", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
245
|
+
["onTouchEnd", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
246
|
+
["onTouchMove", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
247
|
+
["onTouchStart", "supported", "设备 > 触摸", "✅ 可用", ""],
|
|
248
|
+
["onUnhandledRejection", "supported", "基础 > 小程序 > 应用级事件", "✅ 可用", ""],
|
|
249
|
+
["onUserCaptureScreen", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
250
|
+
["onVoIPChatInterrupted", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
251
|
+
["onVoIPChatMembersChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
252
|
+
["onVoIPChatSpeakersChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
253
|
+
["onVoIPChatStateChanged", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
254
|
+
["onWheel", "supported", "设备 > 滚轮", "✅ 可用", ""],
|
|
255
|
+
["onWindowResize", "supported", "界面 > 窗口", "✅ 可用", ""],
|
|
256
|
+
["onWindowStateChange", "supported", "界面 > 窗口", "✅ 可用", ""],
|
|
257
|
+
["openAppAuthorizeSetting", "unsupported", "基础 > 系统", "❌ 不可用", ""],
|
|
258
|
+
["openBluetoothAdapter", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
259
|
+
["openCard", "unsupported", "开放接口 > 卡券", "❌ 不可用", ""],
|
|
260
|
+
["openChannelsActivity", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
261
|
+
["openChannelsEvent", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
262
|
+
["openChannelsLive", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
263
|
+
["openChannelsUserProfile", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
264
|
+
["openChatTool", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
265
|
+
["openCustomerServiceChat", "unsupported", "开放接口 > 微信客服", "❌ 不可用", ""],
|
|
266
|
+
["openCustomerServiceConversation", "unsupported", "开放接口 > 客服消息", "❌ 不可用", ""],
|
|
267
|
+
["openPrivacyContract", "unsupported", "开放接口 > 隐私信息授权", "❌ 不可用", ""],
|
|
268
|
+
["openSetting", "unsupported", "开放接口 > 设置", "❌ 不可用", ""],
|
|
269
|
+
["openSystemBluetoothSetting", "unsupported", "基础 > 系统", "❌ 不可用", ""],
|
|
270
|
+
["operateGameRecorderVideo", "unsupported", "游戏对局回放", "❌ 不可用", ""],
|
|
271
|
+
["preDownloadSubpackage", "supported", "基础 > 分包加载", "✅ 可用", ""],
|
|
272
|
+
["previewImage", "supported", "媒体 > 图片", "✅ 可用", ""],
|
|
273
|
+
["previewMedia", "supported", "媒体 > 图片", "✅ 可用", ""],
|
|
274
|
+
["readBLECharacteristicValue", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
275
|
+
["removeStorage", "supported", "数据缓存", "✅ 可用", ""],
|
|
276
|
+
["removeStorageSync", "supported", "数据缓存", "✅ 可用", ""],
|
|
277
|
+
["removeUserCloudStorage", "unsupported", "开放接口 > 开放数据", "❌ 不可用", ""],
|
|
278
|
+
["reportEvent", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
279
|
+
["reportMonitor", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
280
|
+
["reportPerformance", "supported", "基础 > 性能", "✅ 可用", ""],
|
|
281
|
+
["reportScene", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
282
|
+
["reportUserBehaviorBranchAnalytics", "unsupported", "数据分析", "❌ 不可用", ""],
|
|
283
|
+
["request", "supported", "网络 > 发起请求", "✅ 可用", ""],
|
|
284
|
+
["requestGamePayment", "supported", "出海新增接口", "发起游戏币支付", ""],
|
|
285
|
+
["requestMidasPayment", "unsupported", "虚拟支付", "❌ 不可用,请使用出海专用接口,见 出海小游戏支付开发者接入文档", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/pay.html"],
|
|
286
|
+
["requestMidasPaymentGameItem", "unsupported", "虚拟支付", "❌ 不可用,请使用出海专用接口,见 出海道具直购开发者接入文档", "https://gamemp.weixin.qq.com/doc/overseas-game/guide/virtual-payment.html"],
|
|
287
|
+
["requestPaymentGameItem", "supported", "出海新增接口", "发起道具直购支付", ""],
|
|
288
|
+
["requestPointerLock", "supported", "渲染 > 鼠标样式", "✅ 可用", ""],
|
|
289
|
+
["requestSubscribeMessage", "unsupported", "开放接口 > 订阅消息", "❌ 不可用", ""],
|
|
290
|
+
["requestSubscribeSystemMessage", "unsupported", "开放接口 > 订阅消息", "❌ 不可用", ""],
|
|
291
|
+
["requirePrivacyAuthorize", "supported", "开放接口 > 隐私信息授权", "✅ 可用", ""],
|
|
292
|
+
["reserveChannelsLive", "unsupported", "开放接口 > 视频号", "❌ 不可用", ""],
|
|
293
|
+
["restartMiniProgram", "supported", "跳转", "✅ 可用", ""],
|
|
294
|
+
["revokeBufferURL", "supported", "数据缓存", "✅ 可用", ""],
|
|
295
|
+
["saveFileToDisk", "unsupported", "文件", "❌ 不可用", ""],
|
|
296
|
+
["saveImageToPhotosAlbum", "supported", "媒体 > 图片", "✅ 可用", ""],
|
|
297
|
+
["scanCode", "unsupported", "设备 > 扫码", "❌ 不可用", ""],
|
|
298
|
+
["selectGroupMembers", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
299
|
+
["sendSocketMessage", "supported", "网络 > WebSocket", "✅ 可用", ""],
|
|
300
|
+
["setBLEMTU", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""],
|
|
301
|
+
["setBackgroundFetchToken", "supported", "数据缓存 > 数据预拉取和周期性更新", "✅ 可用", ""],
|
|
302
|
+
["setClipboardData", "supported", "设备 > 剪贴板", "✅ 可用", ""],
|
|
303
|
+
["setCursor", "supported", "渲染 > 鼠标样式", "✅ 可用", ""],
|
|
304
|
+
["setDeviceOrientation", "supported", "设备 > 转屏", "✅ 可用", ""],
|
|
305
|
+
["setEnableDebug", "supported", "基础 > 调试 > console", "✅ 可用", ""],
|
|
306
|
+
["setHandoffQuery", "unsupported", "转发", "❌ 不可用", ""],
|
|
307
|
+
["setInnerAudioOption", "supported", "媒体 > 音频", "✅ 可用", ""],
|
|
308
|
+
["setKeepScreenOn", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
309
|
+
["setMenuStyle", "supported", "界面 > 菜单", "✅ 可用", ""],
|
|
310
|
+
["setMessageToFriendQuery", "unsupported", "转发", "❌ 不可用", ""],
|
|
311
|
+
["setPreferredFramesPerSecond", "supported", "渲染 > 帧率", "✅ 可用", ""],
|
|
312
|
+
["setScreenBrightness", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
313
|
+
["setStatusBarStyle", "unsupported", "界面 > 状态栏", "❌ 不可用", ""],
|
|
314
|
+
["setStorage", "supported", "数据缓存", "✅ 可用", ""],
|
|
315
|
+
["setStorageSync", "supported", "数据缓存", "✅ 可用", ""],
|
|
316
|
+
["setUserCloudStorage", "unsupported", "开放接口 > 开放数据", "❌ 不可用", ""],
|
|
317
|
+
["setVisualEffectOnCapture", "supported", "设备 > 屏幕", "✅ 可用", ""],
|
|
318
|
+
["setWindowSize", "supported", "界面 > 窗口", "✅ 可用", ""],
|
|
319
|
+
["shareAppMessage", "unsupported", "转发", "❌ 不可用", ""],
|
|
320
|
+
["shareAppMessageToGroup", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
321
|
+
["shareEmojiToGroup", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
322
|
+
["shareImageToGroup", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
323
|
+
["shareTextToGroup", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
324
|
+
["shareVideoToGroup", "unsupported", "聊天工具", "❌ 不可用", ""],
|
|
325
|
+
["showActionSheet", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
326
|
+
["showKeyboard", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
327
|
+
["showLoading", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
328
|
+
["showModal", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
329
|
+
["showShareImageMenu", "unsupported", "转发", "❌ 不可用", ""],
|
|
330
|
+
["showShareMenu", "unsupported", "转发", "❌ 不可用", ""],
|
|
331
|
+
["showToast", "supported", "界面 > 交互", "✅ 可用", ""],
|
|
332
|
+
["startAccelerometer", "supported", "设备 > 加速计", "✅ 可用", ""],
|
|
333
|
+
["startBeaconDiscovery", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
334
|
+
["startBluetoothDevicesDiscovery", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
335
|
+
["startCompass", "supported", "设备 > 罗盘", "✅ 可用", ""],
|
|
336
|
+
["startDeviceMotionListening", "supported", "设备 > 设备方向", "✅ 可用", ""],
|
|
337
|
+
["startGyroscope", "supported", "设备 > 陀螺仪", "✅ 可用", ""],
|
|
338
|
+
["stopAccelerometer", "supported", "设备 > 加速计", "✅ 可用", ""],
|
|
339
|
+
["stopBeaconDiscovery", "unsupported", "设备 > 蓝牙-信标(Beacon)", "❌ 不可用", ""],
|
|
340
|
+
["stopBluetoothDevicesDiscovery", "unsupported", "设备 > 蓝牙-通用", "❌ 不可用", ""],
|
|
341
|
+
["stopCompass", "supported", "设备 > 罗盘", "✅ 可用", ""],
|
|
342
|
+
["stopDeviceMotionListening", "supported", "设备 > 设备方向", "✅ 可用", ""],
|
|
343
|
+
["stopFaceDetect", "unsupported", "AI > 人脸检测", "❌ 不可用", ""],
|
|
344
|
+
["stopGyroscope", "supported", "设备 > 陀螺仪", "✅ 可用", ""],
|
|
345
|
+
["triggerGC", "supported", "基础 > 性能", "✅ 可用", ""],
|
|
346
|
+
["updateKeyboard", "supported", "设备 > 键盘", "✅ 可用", ""],
|
|
347
|
+
["updateShareMenu", "unsupported", "转发", "❌ 不可用", ""],
|
|
348
|
+
["updateVoIPChatMuteConfig", "unsupported", "媒体 > 实时语音", "❌ 不可用", ""],
|
|
349
|
+
["updateWeChatApp", "unsupported", "基础 > 更新", "❌ 不可用", ""],
|
|
350
|
+
["uploadFile", "supported", "网络 > 上传", "✅ 可用", ""],
|
|
351
|
+
["vibrateLong", "supported", "设备 > 振动", "✅ 可用", ""],
|
|
352
|
+
["vibrateShort", "supported", "设备 > 振动", "✅ 可用", ""],
|
|
353
|
+
["writeBLECharacteristicValue", "unsupported", "设备 > 蓝牙-低功耗中心设备", "❌ 不可用", ""]
|
|
354
|
+
]
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# 运行与数据
|
|
2
|
+
|
|
3
|
+
## 阶段产物
|
|
4
|
+
|
|
5
|
+
每次在 `<project>/.overseas-api/<run>/` 保存独立状态,默认运行名为 `current`。每条命令使用相同的 `--project` 和 `--run`;新范围或已确认方案要重做时换运行名。
|
|
6
|
+
|
|
7
|
+
| 路径 | 内容 |
|
|
8
|
+
| ------------------------------------------- | ------------------------------------------ |
|
|
9
|
+
| `state.json` | 扫描与方案版本、用户确认和完成记录 |
|
|
10
|
+
| `01-scan/report.md`、`scan.json` | 使用报告、扫描数据、覆盖和文件指纹 |
|
|
11
|
+
| `01-scan/locations.md`、`review-items.json` | 全部位置和待复核清单 |
|
|
12
|
+
| `01-scan/review.md`、`review.json` | 模型或人工复核意见 |
|
|
13
|
+
| `02-plan/report.md`、`actions.json` | 四类方案;JSON 清单只含第 2、3、4 类 |
|
|
14
|
+
| `03-adapt/transaction.json`、`rescan.json` | 中断写入记录(成功后移除)、本批或最终复扫 |
|
|
15
|
+
| `03-adapt/issues.json` | 复扫版本及统一待处理问题清单 |
|
|
16
|
+
|
|
17
|
+
`--root` 可重复,传相对项目根的目录或文件;`--scope build` 应指向实际微信构建目录。对有 Cocos Creator 清单、且以 `assets` 为源码范围的项目,脚本补入现有微信构建模板和 `extensions/*/static/adapters/wechatgame`,并在报告中列出实际范围。源码默认范围跳过根目录下的 `build`、`dist`、`out`。构建扫描必须显式指定 `--root`,如 `--scope build --root build/wechatgame`。只有把独立产物目录用作 `--project` 时,才使用 `--scope build --root .`。
|
|
18
|
+
|
|
19
|
+
脚本用文本预筛和 Babel AST 区分调用、桥接、引用和探测,并追踪直线赋值、参数目标一致的本地包装、ES 模块和静态 CommonJS 别名。逻辑或条件表达式存在多个平台候选时进入动态复核;目标一致时保留具体接口。登录、广告和支付路由从请求参数和可解析的常量提取,保留完整路径。远端配置和业务可达性结合运行验证核对,服务端接口结合对应源码核对。
|
|
20
|
+
|
|
21
|
+
补丁检查跟踪未确认调用的模块依赖、本地函数调用入口、回调注册及控制条件。`verify` 保存条目涉及文件及传递导入文件的版本;后续补丁修改这些文件时,旧验收转为 `needs-verification`,并清除旧证据和保留路径说明。`next` 优先返回当前待验收项及待复验项。
|
|
22
|
+
|
|
23
|
+
## 扫描复核
|
|
24
|
+
|
|
25
|
+
扫描后读取 `review-items.json`,优先核对关键链路和歧义。用 `overseas api review --notes <file>` 分批记录结论和证据。原始报告保存脚本结果,复核文件保存模型或人工意见;用户确认通过 `approve-scan` 记录。已确认版本的复核内容锁定,后续修订使用新的运行名。
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"scanDigest": "<scan 输出的报告确认码>",
|
|
30
|
+
"notes": [
|
|
31
|
+
{
|
|
32
|
+
"id": "012345abcdef",
|
|
33
|
+
"outcome": "confirmed",
|
|
34
|
+
"conclusion": "已定位平台桥接定义和业务入口;支付开关列入运行验收。",
|
|
35
|
+
"evidence": [{ "file": "assets/game.ts", "line": 18 }]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`outcome` 可取 `confirmed`(已核实)、`false-positive`(误报)、`unresolved`(待核实)、`scope-gap`(范围缺口)。前两项提供本次扫描内的文件行号;后两项在 `conclusion` 中写明待确认的对象和所需资料。
|
|
42
|
+
|
|
43
|
+
## 决策格式
|
|
44
|
+
|
|
45
|
+
在本次运行目录中准备 `02-plan/decisions.input.json`(也可放在其他临时路径),用 `overseas api plan --decisions <file>` 转为报告。示例 ID 应换成 `scan.json` 中的实际 ID:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"coverage": "扫描范围为客户端和登录服务。",
|
|
50
|
+
"decisions": [
|
|
51
|
+
{
|
|
52
|
+
"id": "012345abcdef",
|
|
53
|
+
"action": "replace",
|
|
54
|
+
"reason": "生产环境通过国内域名换取登录凭证。",
|
|
55
|
+
"evidence": "server/login.ts:18;出海服务端文档 2.2。",
|
|
56
|
+
"impact": "主流程依赖换取 openid;国内开发工具继续走独立路由。",
|
|
57
|
+
"approach": "海外路径切到 univapi.wechat.com 并保留现有错误处理。",
|
|
58
|
+
"verify": "用模拟上游检查国内和海外两条路由、无效 code 和正常返回。"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
`action` 可取 `keep`、`replace`、`disable`、`design`。`not-applicable` 只用于经查不涉及实际接口的探测、静态字面量或其他线索。缺少依据时暂不提交该 ID,报告保留待核实项。为所有调用提供决策后可以整体确认。
|
|
65
|
+
|
|
66
|
+
用户明确批准的条目用 `approve-plan --digest <digest> --id <id>` 分批确认,重复 `--id` 可登记多个清单 ID,后续批次可追加。第 4 类另用 `approve-item` 记录具体方案。可执行队列包含已确认的条目;待核实项的调用及依赖保持锁定。为待核实项制定新方案时,基于当前副本开启新扫描。
|
|
67
|
+
|
|
68
|
+
## 补丁格式
|
|
69
|
+
|
|
70
|
+
模型从 `next` 读取单项,保存补丁到本次运行的 `03-adapt/` 或其他临时路径。补丁里的 `sha256` 是文件当前字节的 SHA-256;已有文件用唯一匹配的原文替换,新文件用 `"sha256": null, "create": "完整内容"`。每个补丁只关联一个清单 ID,可以包含多个文件。示例:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"id": "012345abcdef",
|
|
75
|
+
"summary": "将海外登录请求切到海外服务端地址。",
|
|
76
|
+
"files": [
|
|
77
|
+
{
|
|
78
|
+
"file": "server/login.ts",
|
|
79
|
+
"sha256": "<文件的实际 SHA-256>",
|
|
80
|
+
"edits": [
|
|
81
|
+
{
|
|
82
|
+
"before": "const overseasHost = 'https://api.weixin.qq.com';",
|
|
83
|
+
"after": "const overseasHost = 'https://univapi.wechat.com';"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
运行 `apply --patch <file>` 后按计划验证,再运行 `verify --id <id> --evidence <实际结果>`。仍保留旧接口(例如国内专用分支)时,加 `--retained <边界及验证依据>`。未通过就修复,或用 `block --id <id> --reason <原因>` 留待续跑;`block` 也可重开有问题的已验收项。运行状态由命令更新。
|
|
92
|
+
|
|
93
|
+
`finish --batch` 复扫当前已批准、可执行且验收版本有效的条目,其他问题留待后续处理。`status.issues` 和 `next.issues` 汇总未定方案、未处理的扫描复核及新增未知接口;`plan.unresolved` 显示其去重数量。新增或变化的动态调用、桥接歧义和未知接口会阻止批次及整体验收。未知接口通过 `block` 重开相关条目并修正补丁;需保留时,在新运行中补齐处理方案。
|
|
94
|
+
|
|
95
|
+
整体验收还检查复核队列:解析失败和范围缺口需有带证据的已核实结论,或已从当前扫描中消除;显式记录为 `unresolved`、`scope-gap` 的现存问题继续保留。全部条目验收且问题清单为空后,`finish` 标记完成。按方案执行构建、海外真机及涉及的支付、广告链路验收,并保存结果。
|