test(web_view): 添加 ?app=identifier 参数跳过 scene 直接解析
This commit is contained in:
@@ -110,6 +110,13 @@ export default {
|
||||
console.log("[web_view] !=== onLoad 完整 option:", JSON.stringify(option));
|
||||
console.log("[web_view] !=== option keys:", JSON.stringify(Object.keys(option)));
|
||||
console.log("[web_view] !=== option.url:", option.url);
|
||||
console.log("[web_view] !=== option.app:", option.app);
|
||||
// app 参数模式(测试用):直接传 identifier 跳过 scene
|
||||
if (option.app) {
|
||||
console.log("[web_view] app 参数模式: identifier=" + option.app);
|
||||
this._resolveAppScene(option.app, option);
|
||||
return;
|
||||
}
|
||||
// 太阳码 scene 解析:scene="app=<identifier>" 时调 box_app 查 url
|
||||
// 例如 box_app /api/wxacode?app=pregnancy → scene="app=pregnancy"
|
||||
// CRMEB 收到后查 box_app /api/mp/apps?isPublished=1 找 url,跳对应 H5
|
||||
|
||||
Reference in New Issue
Block a user