diff --git a/CHANGELOG.md b/CHANGELOG.md index 21a31478..eda64419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ Removed - 删除功能/接口 Fixed - 修复问题 Others - 其他 --> +## v0.1.26 【预发布】 +### Feature +* 普通:增加禁止多点触控的配置 +### Fixed +* 普通:修复IOS长音频获取数据延迟的bug +* 普通:性能分析工具,修复callstack中的堆栈悬空丢失的问题 + ## v0.1.25 【普通更新】 ### Feature * 普通:性能深入分析工具,支持Lua capture能力 diff --git a/Editor/WXConvertCore.cs b/Editor/WXConvertCore.cs index b1686852..d826ca20 100644 --- a/Editor/WXConvertCore.cs +++ b/Editor/WXConvertCore.cs @@ -1910,6 +1910,7 @@ namespace WeChatWASM config.CompileOptions.DevelopBuild ? "true" : "false", config.CompileOptions.enablePerfAnalysis ? "true" : "false", config.ProjectConf.MemorySize.ToString(), + config.SDKOptions.disableMultiTouch ? "true" : "false", }); List replaceList = new List(replaceArrayList); diff --git a/Editor/WXEditorSettingHelper.cs b/Editor/WXEditorSettingHelper.cs index f5665124..87c5f2eb 100644 --- a/Editor/WXEditorSettingHelper.cs +++ b/Editor/WXEditorSettingHelper.cs @@ -170,6 +170,7 @@ namespace WeChatWASM this.formCheckbox("useFriendRelation", "使用好友关系链"); this.formCheckbox("useMiniGameChat", "使用社交组件"); this.formCheckbox("preloadWXFont", "预加载微信字体(?)", "在game.js执行开始时预载微信系统字体,运行期间可使用WX.GetWXFont获取微信字体"); + this.formCheckbox("disableMultiTouch", "禁用多点触控"); EditorGUILayout.EndVertical(); } @@ -455,6 +456,7 @@ namespace WeChatWASM this.setData("useFriendRelation", config.SDKOptions.UseFriendRelation); this.setData("useMiniGameChat", config.SDKOptions.UseMiniGameChat); this.setData("preloadWXFont", config.SDKOptions.PreloadWXFont); + this.setData("disableMultiTouch", config.SDKOptions.disableMultiTouch); this.setData("bgImageSrc", config.ProjectConf.bgImageSrc); tex = AssetDatabase.LoadAssetAtPath(config.ProjectConf.bgImageSrc); this.setData("memorySize", config.ProjectConf.MemorySize.ToString()); @@ -532,6 +534,7 @@ namespace WeChatWASM config.SDKOptions.UseFriendRelation = this.getDataCheckbox("useFriendRelation"); config.SDKOptions.UseMiniGameChat = this.getDataCheckbox("useMiniGameChat"); config.SDKOptions.PreloadWXFont = this.getDataCheckbox("preloadWXFont"); + config.SDKOptions.disableMultiTouch = this.getDataCheckbox("disableMultiTouch"); config.ProjectConf.bgImageSrc = this.getDataInput("bgImageSrc"); config.ProjectConf.MemorySize = int.Parse(this.getDataInput("memorySize")); config.ProjectConf.HideAfterCallMain = this.getDataCheckbox("hideAfterCallMain"); diff --git a/Editor/WXPluginVersion.cs b/Editor/WXPluginVersion.cs index 6202a28d..7281a561 100644 --- a/Editor/WXPluginVersion.cs +++ b/Editor/WXPluginVersion.cs @@ -2,7 +2,7 @@ namespace WeChatWASM { public class WXPluginVersion { - public static string pluginVersion = "202503311222"; // 这一行不要改他,导出的时候会自动替换 + public static string pluginVersion = "202504250349"; // 这一行不要改他,导出的时候会自动替换 } public class WXPluginConf diff --git a/Editor/wx-editor.dll b/Editor/wx-editor.dll index 8338ecc5..92cb27e7 100644 Binary files a/Editor/wx-editor.dll and b/Editor/wx-editor.dll differ diff --git a/Editor/wx-editor.xml b/Editor/wx-editor.xml index 6dc11b21..331e7064 100644 --- a/Editor/wx-editor.xml +++ b/Editor/wx-editor.xml @@ -543,6 +543,11 @@ 预载系统字体 + + + 是否禁止多点触控 + + Development Build diff --git a/Editor/wx-editor.xml.meta b/Editor/wx-editor.xml.meta index ded8dc25..6ed93053 100644 --- a/Editor/wx-editor.xml.meta +++ b/Editor/wx-editor.xml.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e1e31b21258f8487d4eae0223308854 +guid: 11900e5aab45727b7c0078ebb4d7daf4 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/Plugins/wx-perf.dll b/Runtime/Plugins/wx-perf.dll index e47b4357..1fad8c55 100644 Binary files a/Runtime/Plugins/wx-perf.dll and b/Runtime/Plugins/wx-perf.dll differ diff --git a/Runtime/Plugins/wx-runtime-editor.dll b/Runtime/Plugins/wx-runtime-editor.dll index 784d03f0..d1505583 100644 Binary files a/Runtime/Plugins/wx-runtime-editor.dll and b/Runtime/Plugins/wx-runtime-editor.dll differ diff --git a/Runtime/Plugins/wx-runtime-editor.xml b/Runtime/Plugins/wx-runtime-editor.xml index 7964732a..e04592bf 100644 --- a/Runtime/Plugins/wx-runtime-editor.xml +++ b/Runtime/Plugins/wx-runtime-editor.xml @@ -3109,41 +3109,11 @@ 可参考[calc_signature](https://docs.qq.com/doc/DVUN0QWJja0J5c2x4) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 预告 id,通过 getChannelsLiveNoticeInfo 接口获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -3824,11 +3794,6 @@ 下载资源的 url - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.10.4` @@ -3846,11 +3811,6 @@ 是否开启 Quic/h3 协议(iOS 微信目前使用 gQUIC-Q43;Android 微信在 v8.0.54 前使用 gQUIC-Q43,v8.0.54 开始使用 IETF QUIC,即 h3 协议;PC微信使用 IETF QUIC,即 h3 协议) - - - 接口调用失败的回调函数 - - 需要基础库: `1.8.0` @@ -3862,11 +3822,6 @@ HTTP 请求的 Header,Header 中不能设置 Referer - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.0` @@ -4163,6 +4118,26 @@ 取值为0/1,取值为0表示会把 `App`、`Page` 的生命周期函数和 `wx` 命名空间下的函数调用写入日志,取值为1则不会。默认值是 0 + + + 从不同渠道获得的OPENLINK字符串 + + + + + 选填,部分活动、功能允许接收自定义query参数,请参阅渠道说明,默认可不填 + + + + + 从不同渠道获得的OPENLINK字符串 + + + + + 选填,部分活动、功能允许接收自定义query参数,请参阅渠道说明,默认可不填 + + 是否有新版本 @@ -4210,16 +4185,6 @@ 文本的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 字号 @@ -4241,31 +4206,11 @@ - 'bold': 粗体; - - - 接口调用成功的回调函数 - - 需要添加的卡券列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 卡券的扩展参数。需将 CardExt 对象 JSON 序列化为**字符串**传入 @@ -4302,21 +4247,6 @@ shareTicket。可以从 wx.getEnterOptionsSync 中获取。详情 [shareTicket](#) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 经过加密的activityId,解密后可得到原始的activityId。若解密后得到的activityId可以与开发者后台的活动id对应上则验证通过,否则表明valid字段不可靠(被篡改) 详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) @@ -4342,71 +4272,16 @@ 需要获取权限的 scope,详见 [scope 列表](https://developers.weixin.qq.com/minigame/dev/guide/base-ability/authorize.html#scope-列表) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否被添加至 「我的小程序」 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 最多可以选择的图片张数 - - - 接口调用失败的回调函数 - - 所选的图片的尺寸 @@ -4423,11 +4298,6 @@ - 'camera': 使用相机; - - - 接口调用成功的回调函数 - - 图片的本地临时文件路径列表 (本地路径) @@ -4457,21 +4327,11 @@ - 'front': 使用前置摄像头; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 最多可以选择的文件个数,基础库2.25.0前,最多可支持9个文件,2.25.0及以后最多可支持20个文件 - - - 接口调用失败的回调函数 - - 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 60s 之间。不限制相册。 @@ -4499,11 +4359,6 @@ - 'camera': 使用相机拍摄; - - - 接口调用成功的回调函数 - - 本地临时文件列表 @@ -4557,27 +4412,12 @@ 最多可以选择的文件个数,可以 0~100 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.6.0` 根据文件拓展名过滤,仅 type==file 时有效。每一项都不能是空字符串。默认不过滤。 - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 所选的文件的类型 @@ -4627,21 +4467,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -4684,31 +4509,11 @@ | 10013 | invalid_data | 连接 deviceId 为空或者是格式不正确 | - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图片路径,图片的路径,支持本地路径、代码包路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.26.0` @@ -4721,21 +4526,11 @@ 压缩后图片的宽度,单位为px,若不填写则默认以compressedHeight为准等比缩放。 - - - 接口调用失败的回调函数 - - 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)。 - - - 接口调用成功的回调函数 - - 压缩后图片的临时文件路径 (本地路径) @@ -4746,41 +4541,11 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 超时时间,单位 ms,不填表示不会超时 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - [BLEPeripheralServer](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.html) @@ -4913,21 +4678,6 @@ 描述service的Object - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - characteristics列表 @@ -5083,36 +4833,11 @@ service 的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 广播自定义参数 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 广播功率 @@ -5122,11 +4847,6 @@ - 'high': 功率高; - - - 接口调用成功的回调函数 - - 需要基础库: `2.20.1` @@ -5183,21 +4903,6 @@ 制造商信息 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙特征的 UUID @@ -5223,51 +4928,6 @@ 可选,处理回包时使用 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图像像素点数据,每四项表示一个像素点的 RGBA @@ -5283,11 +4943,6 @@ 图像宽度 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 是否返回当前图像的人脸角度信息 @@ -5308,16 +4963,6 @@ 是否返回当前图像的人脸(106 个点) - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 人脸角度信息,取值范围 [-1, 1],数值越接近 0 表示越正对摄像头 @@ -5393,21 +5038,6 @@ 右眼可信度 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 支持的音频输入源列表,可在 [RecorderManager.start()](https://developers.weixin.qq.com/minigame/dev/api/media/recorder/RecorderManager.start.html) 接口中使用。返回值定义参考 https://developer.android.com/reference/kotlin/android/media/MediaRecorder.AudioSource @@ -5431,21 +5061,6 @@ 蓝牙服务 UUID。需要先调用 [wx.getBLEDeviceServices](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-ble/wx.getBLEDeviceServices.html) 获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 设备特征列表 @@ -5496,21 +5111,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 信号强度,单位 dBm @@ -5521,21 +5121,6 @@ 蓝牙设备 id。需要已经通过 [wx.createBLEConnection](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-ble/wx.createBLEConnection.html) 建立连接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 设备服务列表 @@ -5556,21 +5141,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 写模式 (iOS 特有参数) @@ -5589,21 +5159,6 @@ 缓存数据类别,取值为 periodic 或 pre - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 缓存数据 @@ -5629,21 +5184,6 @@ 客户端拿到缓存数据的时间戳 ms。(iOS 时间戳存在异常,8.0.27 修复) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 接口调用结果 @@ -5654,21 +5194,6 @@ 自定义的登录态 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否正在充电中 @@ -5685,21 +5210,6 @@ 设备电量,范围 1 - 100 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -5770,21 +5280,6 @@ Beacon 设备广播的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙适配器是否可用 @@ -5795,21 +5290,6 @@ 是否正在搜索设备 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - UUID 对应的已连接设备列表 @@ -5860,33 +5340,18 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.29.0` 结束时间,筛选指定时间段的直播。若上传了startTime,未上传endTime,则endTime默认取当前时间 - - - 接口调用失败的回调函数 - - 需要基础库: `2.29.0` 起始时间,筛选指定时间段的直播。若上传了endTime,未上传startTime,则startTime默认为0 - - - 接口调用成功的回调函数 - - 直播主题 @@ -5944,21 +5409,6 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 直播封面 @@ -5995,21 +5445,6 @@ 预告状态:0可用 1取消 2已用 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 剪贴板的内容 @@ -6020,21 +5455,6 @@ 蓝牙设备主服务的 UUID 列表(支持 16/32/128 位 UUID) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 搜索到的设备列表 @@ -6050,58 +5470,13 @@ 蓝牙设备名称,某些设备可能没有 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 第三方平台自定义的数据 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 返回的坐标类型 @@ -6125,21 +5500,6 @@ 需要获取的数据指标的对象数组 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 见type表格说明 @@ -6170,19 +5530,16 @@ 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息 - + - 接口调用结束的回调函数(调用成功、失败都会执行) + 需要基础库: `3.7.8` + 开启后单聊下返回 open_single_roomid - + - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 + 需要基础库: `3.7.8` + 开启后返回用户在群(含单聊)下的 group_openid @@ -6224,41 +5581,11 @@ 加密算法的初始向量,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - AI推理引擎版本 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -6274,21 +5601,6 @@ 本机局域网子网掩码,基础库 2.24.0 开始支持 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.22.1` @@ -6319,16 +5631,6 @@ 是否处于弱网环境 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 手机号实时验证,向用户申请,并在用户同意后,快速填写和实时验证手机号 [具体说明](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/getRealtimePhoneNumber.html)。 @@ -6339,11 +5641,6 @@ 当手机号快速验证或手机号实时验证额度用尽时,是否对用户展示“申请获取你的手机号,但该功能使用次数已达当前小程序上限,暂时无法使用”的提示,默认展示。 - - - 接口调用成功的回调函数 - - 动态令牌 @@ -6359,21 +5656,6 @@ 错误码(失败时返回) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否需要用户授权隐私协议(如果开发者没有在「MP后台-设置-服务内容声明-用户隐私保护指引」中声明隐私收集类型则会返回false;如果开发者声明了隐私收集,且用户之前同意过隐私协议则会返回false;如果开发者声明了隐私收集,且用户还没同意过则返回true;如果用户之前同意过、但后来小程序又新增了隐私收集类型也会返回true) @@ -6384,41 +5666,11 @@ 隐私授权协议的名称 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 录屏状态 @@ -6427,21 +5679,6 @@ - 'off': 关闭; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.1` @@ -6484,42 +5721,12 @@ shareTicket,详见[获取更多转发信息](#) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `1.9.90` 超时时间,单位 ms - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 封面广告组件展示状态码 @@ -6540,21 +5747,6 @@ - 'fail': 展示失败; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 当前占用的空间大小, 单位 KB @@ -6570,46 +5762,6 @@ 限制的空间大小,单位 KB - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 显示用户信息的语言 @@ -6619,11 +5771,6 @@ - 'zh_TW': 繁体中文; - - - 接口调用成功的回调函数 - - 是否带上登录态信息。当 withCredentials 为 true 时,要求此前有调用过 wx.login 且登录态尚未过期,此时返回的数据会包含 encryptedData, iv 等敏感信息;当 withCredentials 为 false 时,不要求有登录态,返回的数据不包含 encryptedData, iv 等敏感信息。 @@ -6709,21 +5856,6 @@ 要获取的 key 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误码 @@ -6751,21 +5883,6 @@ 加密算法的初始向量,详见 [用户数据的签名验证和加解密](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html#加密数据解密算法) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.7.0` @@ -6782,119 +5899,29 @@ 加密算法的初始向量,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.22.1` 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.11.3` 本接口为 Beta 版本,暂只在 Android 平台支持。需要隐藏的转发按钮名称列表,默认['shareAppMessage', 'shareTimeline']。按钮名称合法值包含 "shareAppMessage"、"shareTimeline" 两种 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.22.1` 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 小游戏内此房间/群聊的 ID。同一时刻传入相同 groupId 的用户会进入到同个实时语音房间。 @@ -6915,16 +5942,6 @@ 验证所需的时间戳 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.29.0` @@ -6944,11 +5961,6 @@ - 'video': 视频房间,结合 [voip-room](#) 组件可显示成员画面; - - - 接口调用成功的回调函数 - - 错误信息 @@ -6996,21 +6008,6 @@ 在此通话中的成员 openId 名单 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `1.9.90` @@ -7043,56 +6040,21 @@ pin 码,Base64 格式。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 超时时间,单位 ms - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要返回给上一个小程序的数据,上一个小程序可在 `App.onShow` 中获取到这份数据。 [详情](#)。 - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要打开的小程序 appId - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 要打开的小程序版本。仅在当前小程序为开发版或体验版时此参数有效。如果当前小程序是正式版,则打开的小程序必定是正式版。 @@ -7107,11 +6069,6 @@ 需要传递给目标小程序的数据,目标小程序可在 `App.onLaunch`,`App.onShow` 中获取到这份数据。如果跳转的是小游戏,可以在 [wx.onShow](https://developers.weixin.qq.com/minigame/dev/api/base/app/life-cycle/wx.onShow.html)、[wx.getLaunchOptionsSync](https://developers.weixin.qq.com/minigame/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html) 中可以获取到这份数据数据。 - - - 接口调用失败的回调函数 - - 需要基础库: `2.24.0` @@ -7129,11 +6086,6 @@ 小程序链接,当传递该参数后,可以不传 appId 和 path。链接可以通过【小程序菜单】->【复制链接】获取。 - - - 接口调用成功的回调函数 - - 蓝牙特征的 UUID @@ -7154,21 +6106,6 @@ 是否启用 notify - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.4.0` @@ -7665,31 +6602,6 @@ 变化后的窗口宽度,单位 px - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.10.0` @@ -7699,31 +6611,11 @@ - 'peripheral': 从机(外围设备)模式; - - - 接口调用成功的回调函数 - - 需要打开的卡券列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 卡券 ID @@ -7740,21 +6632,6 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 活动 id @@ -7765,36 +6642,11 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 直播 feedId,通过 getChannelsLiveInfo 接口获取(基础库 v2.19.2 之前的版本需要填写) @@ -7805,31 +6657,11 @@ 直播 nonceId,通过 getChannelsLiveInfo 接口获取(基础库 v2.19.2 之前的版本需要填写) - - - 接口调用成功的回调函数 - - 视频号 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 企业ID @@ -7840,16 +6672,6 @@ 客服信息 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 气泡消息图片 @@ -7870,26 +6692,11 @@ 是否发送小程序气泡消息 - - - 接口调用成功的回调函数 - - 客服链接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 会话内消息卡片图片路径 @@ -7915,11 +6722,6 @@ 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息 - - - 接口调用成功的回调函数 - - 在客服会话内点击小程序消息卡片进入小程序时,所带的小程序打开路径 @@ -7930,36 +6732,6 @@ 在客服会话内点击小程序消息卡片进入小程序时,所带的小程序打开参数 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.3` @@ -7979,21 +6751,6 @@ 用户订阅消息设置,接口参数`withSubscriptions`值为`true`时才会返回。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 对局回放的播放速率,只能设置以下几个值: 0.3, 0.5, 1, 1.5, 2, 2.5, 3.其中1表示元素播放,小于1表示减速播放,大于1表示加速播放 @@ -8009,21 +6766,11 @@ 对局回放背景音乐的地址 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 分享的对局回放打开后的描述内容 - - - 接口调用失败的回调函数 - - 分享的对局回放打开后跳转小游戏的 path (独立分包路径) @@ -8034,11 +6781,6 @@ 分享的对局回放打开后跳转小游戏的 query - - - 接口调用成功的回调函数 - - 对局回放的剪辑区间,是一个二维数组,单位 ms(毫秒)。[[1000, 3000], [4000, 5000]] 表示剪辑已录制对局回放的 1-3 秒和 4-5 秒最终合成为一个 3 秒的对局回放。对局回放剪辑后的总时长最多 60 秒,即 1 分钟 @@ -8059,21 +6801,11 @@ 需要预览的图片链接列表。[2.2.3](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 起支持云文件ID。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 当前显示图片的链接 - - - 接口调用失败的回调函数 - - 需要基础库: `2.13.0` @@ -8086,31 +6818,16 @@ 是否显示长按菜单。 - - - 接口调用成功的回调函数 - - 需要预览的资源列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 当前显示的资源序号 - - - 接口调用失败的回调函数 - - 需要基础库: `2.13.0` @@ -8123,11 +6840,6 @@ 是否显示长按菜单。 - - - 接口调用成功的回调函数 - - 图片或视频的地址 @@ -8161,71 +6873,21 @@ 蓝牙特征对应服务的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 本地缓存中指定的 key - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要删除掉 key 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 场景ID,在「小程序管理后台」获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 此场景的耗时,单位 ms @@ -8236,21 +6898,11 @@ 自定义维度数据,key在「小程序管理后台」获取。只支持能够通过JSON.stringify序列化的对象,且序列化后长度不超过1024个字符 - - - 接口调用失败的回调函数 - - 自定义指标数据,key在「小程序管理后台」获取。只支持能够通过JSON.stringify序列化的对象,且序列化后长度不超过1024个字符 - - - 接口调用成功的回调函数 - - 错误信息 @@ -8376,21 +7028,6 @@ 分区 ID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -8470,11 +7107,6 @@ 购买数量。mode=game 时必填。购买数量。详见 [buyQuantity 限制说明](#buyquantity-限制说明)。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 环境配置 @@ -8483,11 +7115,6 @@ - 1: 米大师沙箱环境; - - - 接口调用失败的回调函数 - - 申请接入时的平台,platform 与应用id有关。 @@ -8495,11 +7122,6 @@ - 'android': android; - - - 接口调用成功的回调函数 - - 分区 ID @@ -8606,21 +7228,6 @@ 需要订阅的消息模板的id的集合,一次调用最多可订阅3条消息(注意:iOS客户端7.0.6版本、Android客户端7.0.7版本之后的一次性订阅/长期订阅才支持多个模板消息,iOS客户端7.0.5版本、Android客户端7.0.6版本之前的一次订阅只支持一个模板消息)消息模板id在[微信公众平台(mp.weixin.qq.com)-功能-订阅消息]中配置。每个tmplId对应的模板标题需要不相同,否则会被过滤。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 接口调用失败错误码 @@ -8644,21 +7251,6 @@ 系统订阅消息类型列表,一次调用最多可订阅3种类型的消息,目前支持:"SYS_MSG_TYPE_INTERACTIVE"(好友互动提醒)、"SYS_MSG_TYPE_RANK"(排行榜超越提醒)、"SYS_MSG_TYPE_WHATS_NEW"(游戏更新提醒) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - [MSG_TYPE]是动态的键,即系统订阅消息类型,值为'accept'、'reject'、'ban','accept'表示用户同意订阅该类型对应的模板消息,'reject'表示用户拒绝订阅该类型对应的模板消息,'ban'表示已被后台封禁。例如 { errMsg: "requestSubscribeSystemMessage:ok", SYS_MSG_TYPE_INTERACTIVE: "accept" } 表示用户同意订阅'SYS_MSG_TYPE_INTERACTIVE'这条消息 @@ -8667,91 +7259,21 @@ 接口调用成功时errMsg值为'requestSubscribeSystemMessage:ok' - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 打开的页面路径,path 中 ? 后面的部分会成为 query - - - 接口调用成功的回调函数 - - 待保存文件路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图片文件路径,可以是临时文件路径或永久文件路径 (本地路径) ,不支持网络路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `1.2.0` @@ -8770,11 +7292,6 @@ - 'pdf417': PDF417 条码; - - - 接口调用成功的回调函数 - - 所扫码的字符集 @@ -8830,21 +7347,6 @@ 最大传输单元。设置范围为 (22,512) 区间内,单位 bytes - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 最终协商的 MTU 值。如果协商失败则无此参数。安卓客户端 8.0.9 开始支持。 @@ -8860,41 +7362,11 @@ 自定义的登录态 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 剪贴板的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 表示切换为横屏还是竖屏 @@ -8903,51 +7375,11 @@ - 'portrait': 竖屏; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否打开调试 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否与其他音频混播,设置为 true 之后,不会终止其他应用或微信内的音乐 @@ -8963,31 +7395,11 @@ true 代表用扬声器播放,false 代表听筒播放,默认值为 true。 - - - 接口调用成功的回调函数 - - 是否保持屏幕常亮 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 样式风格 @@ -8996,41 +7408,11 @@ - 'dark': 深色; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮。在安卓端支持传入特殊值 -1,表示屏幕亮度跟随系统变化 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 样式风格 @@ -9039,41 +7421,11 @@ - 'black': 浅色; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要修改的 KV 数据列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 数据的 key @@ -9084,21 +7436,6 @@ 数据的 value - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 截屏/录屏时的表现,仅支持 none / hidden,传入 hidden 则表示在截屏/录屏时隐藏屏幕 @@ -9144,26 +7481,11 @@ 警示文案 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 按钮的文字颜色 - - - 接口调用成功的回调函数 - - 用户点击的按钮序号,从上到下的顺序,从0开始 @@ -9200,46 +7522,16 @@ 是否为多行输入 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 提示的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否显示透明蒙层,防止触摸穿透 - - - 接口调用成功的回调函数 - - 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 @@ -9250,11 +7542,6 @@ 取消按钮的文字,最多 4 个字符 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 @@ -9276,11 +7563,6 @@ 是否显示输入框 - - - 接口调用失败的回调函数 - - 需要基础库: `2.17.1` @@ -9292,11 +7574,6 @@ 是否显示取消按钮 - - - 接口调用成功的回调函数 - - 提示的标题 @@ -9323,60 +7600,24 @@ 要分享的图片地址,必须为本地路径或临时路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `3.2.0` 从消息小程序入口打开小程序的路径,如果当前页面允许分享给朋友,则默认为当前页面路径,否则默认为小程序首页 - - - 接口调用失败的回调函数 - - 需要基础库: `3.2.0` 分享的图片消息是否要带小程序入口 (仅部分小程序类目可用) - - - 需要基础库: `3.2.0` - 分享样式,小程序可选 v2 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.11.3` 本接口为 Beta 版本,暂只在 Android 平台支持。需要显示的转发按钮名称列表,默认['shareAppMessage']。按钮名称合法值包含 "shareAppMessage"、"shareTimeline" 两种 - - - 接口调用成功的回调函数 - - 是否使用带 shareTicket 的转发[详情](#) @@ -9387,21 +7628,11 @@ 提示的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 提示的延迟时间 - - - 接口调用失败的回调函数 - - 图标 @@ -9423,21 +7654,6 @@ 是否显示透明蒙层,防止触摸穿透 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.1.0` @@ -9448,51 +7664,21 @@ - 'normal': 普通的回调频率,在 200ms/次 左右; - - - 接口调用成功的回调函数 - - Beacon 设备广播的 UUID 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否校验蓝牙开关,仅在 iOS 下有效。iOS 11 起,控制面板里关掉蓝牙,还是能继续使用 Beacon 服务。 - - - 接口调用成功的回调函数 - - 是否允许重复上报同一设备。如果允许重复上报,则 [wx.onBlueToothDeviceFound](#) 方法会多次上报同一设备,但是 RSSI 值会有不同。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 上报设备的间隔,单位 ms。0 表示找到新设备立即上报,其他数值根据传入的间隔上报。 @@ -9512,36 +7698,6 @@ 要搜索的蓝牙设备主服务的 UUID 列表(支持 16/32/128 位 UUID)。某些蓝牙设备会广播自己的主 service 的 UUID。如果设置此参数,则只搜索广播包有对应 UUID 的主服务的蓝牙设备。建议通过该参数过滤掉周边不需要处理的其他蓝牙设备。 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 监听设备方向的变化回调函数的执行频率 @@ -9551,135 +7707,21 @@ - 'normal': 普通的回调频率,在 200ms/次 左右; - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 键盘输入框的当前值 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.4.0` 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取 - + - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 + 需要基础库: `3.7.8` + 指定成员的方式 @@ -9694,9 +7736,9 @@ 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/share/updatable-message.html) - + - 接口调用成功的回调函数 + 参与用户此聊天室下的 group_openid 列表 @@ -9711,6 +7753,12 @@ 群待办消息的id,通过toDoActivityId可以把多个群待办消息聚合为同一个。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取。详见[群待办消息](#) + + + 需要基础库: `3.7.8` + 聊天工具模式特殊动态消息 + + 是否使用带 shareTicket 的转发[详情](#) @@ -9741,72 +7789,12 @@ 静音设置 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.13.0` 震动强度类型,有效值为:heavy、medium、light - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -9834,21 +7822,6 @@ 蓝牙设备特征对应的二进制值 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙特征值的写模式设置,有两种模式,iOS 优先 write,安卓优先 writeNoResponse 。(基础库 2.22.0 开始支持) @@ -9862,36 +7835,6 @@ 自定义query - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -9922,41 +7865,11 @@ 是否正在直播 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 最近几场直播的 feedId 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 包括敏感数据在内的完整转发信息的加密数据,详细见加密数据解密算法 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html @@ -9987,76 +7900,16 @@ 要查询的直播的id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 支持填写最多4个openid,该用户的直播间将在直播专区置顶显示;可不填 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 用于打开指定游戏内容页面的开放链接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - code @@ -10072,21 +7925,6 @@ 要打开的业务类型,目前仅支持 'servicecommentpage' - - - 调用成功、失败都会执行 - - - - - 评价失败的回调 - - - - - 评价成功的回调 - - 帧数据 @@ -10118,6 +7956,41 @@ 要发送的消息 + + + [PageManager.destroy()](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.destroy.html) + 需要基础库: `3.6.7` + 销毁开放页面实例。 + + + + + [PageManager.off(string eventName, function callback)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.off.html) + 需要基础库: `3.6.7` + 取消监听来自活动、功能向开发者产生的某些事件。 + + + + + [PageManager.on(string eventName, function callback)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.on.html) + 需要基础库: `3.6.7` + 监听来自活动、功能向开发者产生的某些事件。 + + + + + [Promise PageManager.load(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.load.html) + 需要基础库: `3.6.7` + 提供OPENLINK加载活动、功能信息。 + + + + + [Promise PageManager.show(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.show.html) + 需要基础库: `3.6.7` + 显示已经成功加载信息的开放页面活动、功能。如果调用前未执行 `.load({ ... })` 将自动调用1次并返回加载信息结果。 + + [RealtimeLogManager.addFilterMsg(string msg)](https://developers.weixin.qq.com/minigame/dev/api/base/debug/RealtimeLogManager.addFilterMsg.html) diff --git a/Runtime/Plugins/wx-runtime-editor.xml.meta b/Runtime/Plugins/wx-runtime-editor.xml.meta index 82a5f199..70a5b5a5 100644 --- a/Runtime/Plugins/wx-runtime-editor.xml.meta +++ b/Runtime/Plugins/wx-runtime-editor.xml.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 863687d8d3945d133dc8832b6108ebbe +guid: f1d2e052ecbecad0b78006c69a5dbd6a DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/Plugins/wx-runtime.dll b/Runtime/Plugins/wx-runtime.dll index 342f145a..2e9b0d3e 100644 Binary files a/Runtime/Plugins/wx-runtime.dll and b/Runtime/Plugins/wx-runtime.dll differ diff --git a/Runtime/Plugins/wx-runtime.xml b/Runtime/Plugins/wx-runtime.xml index 004e076b..5f5e944c 100644 --- a/Runtime/Plugins/wx-runtime.xml +++ b/Runtime/Plugins/wx-runtime.xml @@ -3115,41 +3115,11 @@ 可参考[calc_signature](https://docs.qq.com/doc/DVUN0QWJja0J5c2x4) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 预告 id,通过 getChannelsLiveNoticeInfo 接口获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -3830,11 +3800,6 @@ 下载资源的 url - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.10.4` @@ -3852,11 +3817,6 @@ 是否开启 Quic/h3 协议(iOS 微信目前使用 gQUIC-Q43;Android 微信在 v8.0.54 前使用 gQUIC-Q43,v8.0.54 开始使用 IETF QUIC,即 h3 协议;PC微信使用 IETF QUIC,即 h3 协议) - - - 接口调用失败的回调函数 - - 需要基础库: `1.8.0` @@ -3868,11 +3828,6 @@ HTTP 请求的 Header,Header 中不能设置 Referer - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.0` @@ -4169,6 +4124,26 @@ 取值为0/1,取值为0表示会把 `App`、`Page` 的生命周期函数和 `wx` 命名空间下的函数调用写入日志,取值为1则不会。默认值是 0 + + + 从不同渠道获得的OPENLINK字符串 + + + + + 选填,部分活动、功能允许接收自定义query参数,请参阅渠道说明,默认可不填 + + + + + 从不同渠道获得的OPENLINK字符串 + + + + + 选填,部分活动、功能允许接收自定义query参数,请参阅渠道说明,默认可不填 + + 是否有新版本 @@ -4216,16 +4191,6 @@ 文本的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 字号 @@ -4247,31 +4212,11 @@ - 'bold': 粗体; - - - 接口调用成功的回调函数 - - 需要添加的卡券列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 卡券的扩展参数。需将 CardExt 对象 JSON 序列化为**字符串**传入 @@ -4308,21 +4253,6 @@ shareTicket。可以从 wx.getEnterOptionsSync 中获取。详情 [shareTicket](#) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 经过加密的activityId,解密后可得到原始的activityId。若解密后得到的activityId可以与开发者后台的活动id对应上则验证通过,否则表明valid字段不可靠(被篡改) 详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) @@ -4348,71 +4278,16 @@ 需要获取权限的 scope,详见 [scope 列表](https://developers.weixin.qq.com/minigame/dev/guide/base-ability/authorize.html#scope-列表) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否被添加至 「我的小程序」 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 最多可以选择的图片张数 - - - 接口调用失败的回调函数 - - 所选的图片的尺寸 @@ -4429,11 +4304,6 @@ - 'camera': 使用相机; - - - 接口调用成功的回调函数 - - 图片的本地临时文件路径列表 (本地路径) @@ -4463,21 +4333,11 @@ - 'front': 使用前置摄像头; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 最多可以选择的文件个数,基础库2.25.0前,最多可支持9个文件,2.25.0及以后最多可支持20个文件 - - - 接口调用失败的回调函数 - - 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 60s 之间。不限制相册。 @@ -4505,11 +4365,6 @@ - 'camera': 使用相机拍摄; - - - 接口调用成功的回调函数 - - 本地临时文件列表 @@ -4563,27 +4418,12 @@ 最多可以选择的文件个数,可以 0~100 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.6.0` 根据文件拓展名过滤,仅 type==file 时有效。每一项都不能是空字符串。默认不过滤。 - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 所选的文件的类型 @@ -4633,21 +4473,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -4690,31 +4515,11 @@ | 10013 | invalid_data | 连接 deviceId 为空或者是格式不正确 | - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图片路径,图片的路径,支持本地路径、代码包路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.26.0` @@ -4727,21 +4532,11 @@ 压缩后图片的宽度,单位为px,若不填写则默认以compressedHeight为准等比缩放。 - - - 接口调用失败的回调函数 - - 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)。 - - - 接口调用成功的回调函数 - - 压缩后图片的临时文件路径 (本地路径) @@ -4752,41 +4547,11 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 超时时间,单位 ms,不填表示不会超时 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - [BLEPeripheralServer](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.html) @@ -4919,21 +4684,6 @@ 描述service的Object - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - characteristics列表 @@ -5089,36 +4839,11 @@ service 的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 广播自定义参数 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 广播功率 @@ -5128,11 +4853,6 @@ - 'high': 功率高; - - - 接口调用成功的回调函数 - - 需要基础库: `2.20.1` @@ -5189,21 +4909,6 @@ 制造商信息 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙特征的 UUID @@ -5229,51 +4934,6 @@ 可选,处理回包时使用 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图像像素点数据,每四项表示一个像素点的 RGBA @@ -5289,11 +4949,6 @@ 图像宽度 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 是否返回当前图像的人脸角度信息 @@ -5314,16 +4969,6 @@ 是否返回当前图像的人脸(106 个点) - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 人脸角度信息,取值范围 [-1, 1],数值越接近 0 表示越正对摄像头 @@ -5399,21 +5044,6 @@ 右眼可信度 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 支持的音频输入源列表,可在 [RecorderManager.start()](https://developers.weixin.qq.com/minigame/dev/api/media/recorder/RecorderManager.start.html) 接口中使用。返回值定义参考 https://developer.android.com/reference/kotlin/android/media/MediaRecorder.AudioSource @@ -5437,21 +5067,6 @@ 蓝牙服务 UUID。需要先调用 [wx.getBLEDeviceServices](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-ble/wx.getBLEDeviceServices.html) 获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 设备特征列表 @@ -5502,21 +5117,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 信号强度,单位 dBm @@ -5527,21 +5127,6 @@ 蓝牙设备 id。需要已经通过 [wx.createBLEConnection](https://developers.weixin.qq.com/minigame/dev/api/device/bluetooth-ble/wx.createBLEConnection.html) 建立连接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 设备服务列表 @@ -5562,21 +5147,6 @@ 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 写模式 (iOS 特有参数) @@ -5595,21 +5165,6 @@ 缓存数据类别,取值为 periodic 或 pre - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 缓存数据 @@ -5635,21 +5190,6 @@ 客户端拿到缓存数据的时间戳 ms。(iOS 时间戳存在异常,8.0.27 修复) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 接口调用结果 @@ -5660,21 +5200,6 @@ 自定义的登录态 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否正在充电中 @@ -5691,21 +5216,6 @@ 设备电量,范围 1 - 100 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -5776,21 +5286,6 @@ Beacon 设备广播的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙适配器是否可用 @@ -5801,21 +5296,6 @@ 是否正在搜索设备 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - UUID 对应的已连接设备列表 @@ -5866,33 +5346,18 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `2.29.0` 结束时间,筛选指定时间段的直播。若上传了startTime,未上传endTime,则endTime默认取当前时间 - - - 接口调用失败的回调函数 - - 需要基础库: `2.29.0` 起始时间,筛选指定时间段的直播。若上传了endTime,未上传startTime,则startTime默认为0 - - - 接口调用成功的回调函数 - - 直播主题 @@ -5950,21 +5415,6 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 直播封面 @@ -6001,21 +5451,6 @@ 预告状态:0可用 1取消 2已用 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 剪贴板的内容 @@ -6026,21 +5461,6 @@ 蓝牙设备主服务的 UUID 列表(支持 16/32/128 位 UUID) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 搜索到的设备列表 @@ -6056,58 +5476,13 @@ 蓝牙设备名称,某些设备可能没有 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 第三方平台自定义的数据 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 返回的坐标类型 @@ -6131,21 +5506,6 @@ 需要获取的数据指标的对象数组 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 见type表格说明 @@ -6176,19 +5536,16 @@ 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息 - + - 接口调用结束的回调函数(调用成功、失败都会执行) + 需要基础库: `3.7.8` + 开启后单聊下返回 open_single_roomid - + - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 + 需要基础库: `3.7.8` + 开启后返回用户在群(含单聊)下的 group_openid @@ -6230,41 +5587,11 @@ 加密算法的初始向量,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - AI推理引擎版本 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -6280,21 +5607,6 @@ 本机局域网子网掩码,基础库 2.24.0 开始支持 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.22.1` @@ -6325,16 +5637,6 @@ 是否处于弱网环境 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 手机号实时验证,向用户申请,并在用户同意后,快速填写和实时验证手机号 [具体说明](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/getRealtimePhoneNumber.html)。 @@ -6345,11 +5647,6 @@ 当手机号快速验证或手机号实时验证额度用尽时,是否对用户展示“申请获取你的手机号,但该功能使用次数已达当前小程序上限,暂时无法使用”的提示,默认展示。 - - - 接口调用成功的回调函数 - - 动态令牌 @@ -6365,21 +5662,6 @@ 错误码(失败时返回) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否需要用户授权隐私协议(如果开发者没有在「MP后台-设置-服务内容声明-用户隐私保护指引」中声明隐私收集类型则会返回false;如果开发者声明了隐私收集,且用户之前同意过隐私协议则会返回false;如果开发者声明了隐私收集,且用户还没同意过则返回true;如果用户之前同意过、但后来小程序又新增了隐私收集类型也会返回true) @@ -6390,41 +5672,11 @@ 隐私授权协议的名称 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 录屏状态 @@ -6433,21 +5685,6 @@ - 'off': 关闭; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.1` @@ -6490,42 +5727,12 @@ shareTicket,详见[获取更多转发信息](#) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `1.9.90` 超时时间,单位 ms - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 封面广告组件展示状态码 @@ -6546,21 +5753,6 @@ - 'fail': 展示失败; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 当前占用的空间大小, 单位 KB @@ -6576,46 +5768,6 @@ 限制的空间大小,单位 KB - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 显示用户信息的语言 @@ -6625,11 +5777,6 @@ - 'zh_TW': 繁体中文; - - - 接口调用成功的回调函数 - - 是否带上登录态信息。当 withCredentials 为 true 时,要求此前有调用过 wx.login 且登录态尚未过期,此时返回的数据会包含 encryptedData, iv 等敏感信息;当 withCredentials 为 false 时,不要求有登录态,返回的数据不包含 encryptedData, iv 等敏感信息。 @@ -6715,21 +5862,6 @@ 要获取的 key 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误码 @@ -6757,21 +5889,6 @@ 加密算法的初始向量,详见 [用户数据的签名验证和加解密](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html#加密数据解密算法) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.7.0` @@ -6788,119 +5905,29 @@ 加密算法的初始向量,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/signature.html) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.22.1` 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.11.3` 本接口为 Beta 版本,暂只在 Android 平台支持。需要隐藏的转发按钮名称列表,默认['shareAppMessage', 'shareTimeline']。按钮名称合法值包含 "shareAppMessage"、"shareTimeline" 两种 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.22.1` 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙设备 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 小游戏内此房间/群聊的 ID。同一时刻传入相同 groupId 的用户会进入到同个实时语音房间。 @@ -6921,16 +5948,6 @@ 验证所需的时间戳 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.29.0` @@ -6950,11 +5967,6 @@ - 'video': 视频房间,结合 [voip-room](#) 组件可显示成员画面; - - - 接口调用成功的回调函数 - - 错误信息 @@ -7002,21 +6014,6 @@ 在此通话中的成员 openId 名单 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `1.9.90` @@ -7049,56 +6046,21 @@ pin 码,Base64 格式。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 超时时间,单位 ms - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要返回给上一个小程序的数据,上一个小程序可在 `App.onShow` 中获取到这份数据。 [详情](#)。 - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要打开的小程序 appId - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 要打开的小程序版本。仅在当前小程序为开发版或体验版时此参数有效。如果当前小程序是正式版,则打开的小程序必定是正式版。 @@ -7113,11 +6075,6 @@ 需要传递给目标小程序的数据,目标小程序可在 `App.onLaunch`,`App.onShow` 中获取到这份数据。如果跳转的是小游戏,可以在 [wx.onShow](https://developers.weixin.qq.com/minigame/dev/api/base/app/life-cycle/wx.onShow.html)、[wx.getLaunchOptionsSync](https://developers.weixin.qq.com/minigame/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html) 中可以获取到这份数据数据。 - - - 接口调用失败的回调函数 - - 需要基础库: `2.24.0` @@ -7135,11 +6092,6 @@ 小程序链接,当传递该参数后,可以不传 appId 和 path。链接可以通过【小程序菜单】->【复制链接】获取。 - - - 接口调用成功的回调函数 - - 蓝牙特征的 UUID @@ -7160,21 +6112,6 @@ 是否启用 notify - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.4.0` @@ -7671,31 +6608,6 @@ 变化后的窗口宽度,单位 px - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.10.0` @@ -7705,31 +6617,11 @@ - 'peripheral': 从机(外围设备)模式; - - - 接口调用成功的回调函数 - - 需要打开的卡券列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 卡券 ID @@ -7746,21 +6638,6 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 活动 id @@ -7771,36 +6648,11 @@ 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 视频号 id,以“sph”开头的id,可在视频号助手获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 直播 feedId,通过 getChannelsLiveInfo 接口获取(基础库 v2.19.2 之前的版本需要填写) @@ -7811,31 +6663,11 @@ 直播 nonceId,通过 getChannelsLiveInfo 接口获取(基础库 v2.19.2 之前的版本需要填写) - - - 接口调用成功的回调函数 - - 视频号 id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 企业ID @@ -7846,16 +6678,6 @@ 客服信息 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 气泡消息图片 @@ -7876,26 +6698,11 @@ 是否发送小程序气泡消息 - - - 接口调用成功的回调函数 - - 客服链接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 会话内消息卡片图片路径 @@ -7921,11 +6728,6 @@ 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息 - - - 接口调用成功的回调函数 - - 在客服会话内点击小程序消息卡片进入小程序时,所带的小程序打开路径 @@ -7936,36 +6738,6 @@ 在客服会话内点击小程序消息卡片进入小程序时,所带的小程序打开参数 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.10.3` @@ -7985,21 +6757,6 @@ 用户订阅消息设置,接口参数`withSubscriptions`值为`true`时才会返回。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 对局回放的播放速率,只能设置以下几个值: 0.3, 0.5, 1, 1.5, 2, 2.5, 3.其中1表示元素播放,小于1表示减速播放,大于1表示加速播放 @@ -8015,21 +6772,11 @@ 对局回放背景音乐的地址 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 分享的对局回放打开后的描述内容 - - - 接口调用失败的回调函数 - - 分享的对局回放打开后跳转小游戏的 path (独立分包路径) @@ -8040,11 +6787,6 @@ 分享的对局回放打开后跳转小游戏的 query - - - 接口调用成功的回调函数 - - 对局回放的剪辑区间,是一个二维数组,单位 ms(毫秒)。[[1000, 3000], [4000, 5000]] 表示剪辑已录制对局回放的 1-3 秒和 4-5 秒最终合成为一个 3 秒的对局回放。对局回放剪辑后的总时长最多 60 秒,即 1 分钟 @@ -8065,21 +6807,11 @@ 需要预览的图片链接列表。[2.2.3](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 起支持云文件ID。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 当前显示图片的链接 - - - 接口调用失败的回调函数 - - 需要基础库: `2.13.0` @@ -8092,31 +6824,16 @@ 是否显示长按菜单。 - - - 接口调用成功的回调函数 - - 需要预览的资源列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 当前显示的资源序号 - - - 接口调用失败的回调函数 - - 需要基础库: `2.13.0` @@ -8129,11 +6846,6 @@ 是否显示长按菜单。 - - - 接口调用成功的回调函数 - - 图片或视频的地址 @@ -8167,71 +6879,21 @@ 蓝牙特征对应服务的 UUID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 本地缓存中指定的 key - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要删除掉 key 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 场景ID,在「小程序管理后台」获取 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 此场景的耗时,单位 ms @@ -8242,21 +6904,11 @@ 自定义维度数据,key在「小程序管理后台」获取。只支持能够通过JSON.stringify序列化的对象,且序列化后长度不超过1024个字符 - - - 接口调用失败的回调函数 - - 自定义指标数据,key在「小程序管理后台」获取。只支持能够通过JSON.stringify序列化的对象,且序列化后长度不超过1024个字符 - - - 接口调用成功的回调函数 - - 错误信息 @@ -8382,21 +7034,6 @@ 分区 ID - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -8476,11 +7113,6 @@ 购买数量。mode=game 时必填。购买数量。详见 [buyQuantity 限制说明](#buyquantity-限制说明)。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 环境配置 @@ -8489,11 +7121,6 @@ - 1: 米大师沙箱环境; - - - 接口调用失败的回调函数 - - 申请接入时的平台,platform 与应用id有关。 @@ -8501,11 +7128,6 @@ - 'android': android; - - - 接口调用成功的回调函数 - - 分区 ID @@ -8612,21 +7234,6 @@ 需要订阅的消息模板的id的集合,一次调用最多可订阅3条消息(注意:iOS客户端7.0.6版本、Android客户端7.0.7版本之后的一次性订阅/长期订阅才支持多个模板消息,iOS客户端7.0.5版本、Android客户端7.0.6版本之前的一次订阅只支持一个模板消息)消息模板id在[微信公众平台(mp.weixin.qq.com)-功能-订阅消息]中配置。每个tmplId对应的模板标题需要不相同,否则会被过滤。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 接口调用失败错误码 @@ -8650,21 +7257,6 @@ 系统订阅消息类型列表,一次调用最多可订阅3种类型的消息,目前支持:"SYS_MSG_TYPE_INTERACTIVE"(好友互动提醒)、"SYS_MSG_TYPE_RANK"(排行榜超越提醒)、"SYS_MSG_TYPE_WHATS_NEW"(游戏更新提醒) - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - [MSG_TYPE]是动态的键,即系统订阅消息类型,值为'accept'、'reject'、'ban','accept'表示用户同意订阅该类型对应的模板消息,'reject'表示用户拒绝订阅该类型对应的模板消息,'ban'表示已被后台封禁。例如 { errMsg: "requestSubscribeSystemMessage:ok", SYS_MSG_TYPE_INTERACTIVE: "accept" } 表示用户同意订阅'SYS_MSG_TYPE_INTERACTIVE'这条消息 @@ -8673,91 +7265,21 @@ 接口调用成功时errMsg值为'requestSubscribeSystemMessage:ok' - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 打开的页面路径,path 中 ? 后面的部分会成为 query - - - 接口调用成功的回调函数 - - 待保存文件路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 图片文件路径,可以是临时文件路径或永久文件路径 (本地路径) ,不支持网络路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `1.2.0` @@ -8776,11 +7298,6 @@ - 'pdf417': PDF417 条码; - - - 接口调用成功的回调函数 - - 所扫码的字符集 @@ -8836,21 +7353,6 @@ 最大传输单元。设置范围为 (22,512) 区间内,单位 bytes - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 最终协商的 MTU 值。如果协商失败则无此参数。安卓客户端 8.0.9 开始支持。 @@ -8866,41 +7368,11 @@ 自定义的登录态 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 剪贴板的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 表示切换为横屏还是竖屏 @@ -8909,51 +7381,11 @@ - 'portrait': 竖屏; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 是否打开调试 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否与其他音频混播,设置为 true 之后,不会终止其他应用或微信内的音乐 @@ -8969,31 +7401,11 @@ true 代表用扬声器播放,false 代表听筒播放,默认值为 true。 - - - 接口调用成功的回调函数 - - 是否保持屏幕常亮 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 样式风格 @@ -9002,41 +7414,11 @@ - 'dark': 深色; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮。在安卓端支持传入特殊值 -1,表示屏幕亮度跟随系统变化 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 样式风格 @@ -9045,41 +7427,11 @@ - 'black': 浅色; - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 要修改的 KV 数据列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 数据的 key @@ -9090,21 +7442,6 @@ 数据的 value - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 截屏/录屏时的表现,仅支持 none / hidden,传入 hidden 则表示在截屏/录屏时隐藏屏幕 @@ -9150,26 +7487,11 @@ 警示文案 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 按钮的文字颜色 - - - 接口调用成功的回调函数 - - 用户点击的按钮序号,从上到下的顺序,从0开始 @@ -9206,46 +7528,16 @@ 是否为多行输入 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 提示的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否显示透明蒙层,防止触摸穿透 - - - 接口调用成功的回调函数 - - 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 @@ -9256,11 +7548,6 @@ 取消按钮的文字,最多 4 个字符 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 @@ -9282,11 +7569,6 @@ 是否显示输入框 - - - 接口调用失败的回调函数 - - 需要基础库: `2.17.1` @@ -9298,11 +7580,6 @@ 是否显示取消按钮 - - - 接口调用成功的回调函数 - - 提示的标题 @@ -9329,60 +7606,24 @@ 要分享的图片地址,必须为本地路径或临时路径 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 需要基础库: `3.2.0` 从消息小程序入口打开小程序的路径,如果当前页面允许分享给朋友,则默认为当前页面路径,否则默认为小程序首页 - - - 接口调用失败的回调函数 - - 需要基础库: `3.2.0` 分享的图片消息是否要带小程序入口 (仅部分小程序类目可用) - - - 需要基础库: `3.2.0` - 分享样式,小程序可选 v2 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.11.3` 本接口为 Beta 版本,暂只在 Android 平台支持。需要显示的转发按钮名称列表,默认['shareAppMessage']。按钮名称合法值包含 "shareAppMessage"、"shareTimeline" 两种 - - - 接口调用成功的回调函数 - - 是否使用带 shareTicket 的转发[详情](#) @@ -9393,21 +7634,11 @@ 提示的内容 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - 提示的延迟时间 - - - 接口调用失败的回调函数 - - 图标 @@ -9429,21 +7660,6 @@ 是否显示透明蒙层,防止触摸穿透 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 需要基础库: `2.1.0` @@ -9454,51 +7670,21 @@ - 'normal': 普通的回调频率,在 200ms/次 左右; - - - 接口调用成功的回调函数 - - Beacon 设备广播的 UUID 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 是否校验蓝牙开关,仅在 iOS 下有效。iOS 11 起,控制面板里关掉蓝牙,还是能继续使用 Beacon 服务。 - - - 接口调用成功的回调函数 - - 是否允许重复上报同一设备。如果允许重复上报,则 [wx.onBlueToothDeviceFound](#) 方法会多次上报同一设备,但是 RSSI 值会有不同。 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 上报设备的间隔,单位 ms。0 表示找到新设备立即上报,其他数值根据传入的间隔上报。 @@ -9518,36 +7704,6 @@ 要搜索的蓝牙设备主服务的 UUID 列表(支持 16/32/128 位 UUID)。某些蓝牙设备会广播自己的主 service 的 UUID。如果设置此参数,则只搜索广播包有对应 UUID 的主服务的蓝牙设备。建议通过该参数过滤掉周边不需要处理的其他蓝牙设备。 - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - 监听设备方向的变化回调函数的执行频率 @@ -9557,135 +7713,21 @@ - 'normal': 普通的回调频率,在 200ms/次 左右; - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 键盘输入框的当前值 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.4.0` 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取 - + - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 + 需要基础库: `3.7.8` + 指定成员的方式 @@ -9700,9 +7742,9 @@ 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/share/updatable-message.html) - + - 接口调用成功的回调函数 + 参与用户此聊天室下的 group_openid 列表 @@ -9717,6 +7759,12 @@ 群待办消息的id,通过toDoActivityId可以把多个群待办消息聚合为同一个。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取。详见[群待办消息](#) + + + 需要基础库: `3.7.8` + 聊天工具模式特殊动态消息 + + 是否使用带 shareTicket 的转发[详情](#) @@ -9747,72 +7795,12 @@ 静音设置 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 需要基础库: `2.13.0` 震动强度类型,有效值为:heavy、medium、light - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -9840,21 +7828,6 @@ 蓝牙设备特征对应的二进制值 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 蓝牙特征值的写模式设置,有两种模式,iOS 优先 write,安卓优先 writeNoResponse 。(基础库 2.22.0 开始支持) @@ -9868,36 +7841,6 @@ 自定义query - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 错误信息 @@ -9928,41 +7871,11 @@ 是否正在直播 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 最近几场直播的 feedId 列表 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 包括敏感数据在内的完整转发信息的加密数据,详细见加密数据解密算法 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html @@ -9993,76 +7906,16 @@ 要查询的直播的id - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 支持填写最多4个openid,该用户的直播间将在直播专区置顶显示;可不填 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - 用于打开指定游戏内容页面的开放链接 - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - - - - 接口调用结束的回调函数(调用成功、失败都会执行) - - - - - 接口调用失败的回调函数 - - - - - 接口调用成功的回调函数 - - code @@ -10078,21 +7931,6 @@ 要打开的业务类型,目前仅支持 'servicecommentpage' - - - 调用成功、失败都会执行 - - - - - 评价失败的回调 - - - - - 评价成功的回调 - - 帧数据 @@ -10124,6 +7962,41 @@ 要发送的消息 + + + [PageManager.destroy()](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.destroy.html) + 需要基础库: `3.6.7` + 销毁开放页面实例。 + + + + + [PageManager.off(string eventName, function callback)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.off.html) + 需要基础库: `3.6.7` + 取消监听来自活动、功能向开发者产生的某些事件。 + + + + + [PageManager.on(string eventName, function callback)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.on.html) + 需要基础库: `3.6.7` + 监听来自活动、功能向开发者产生的某些事件。 + + + + + [Promise PageManager.load(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.load.html) + 需要基础库: `3.6.7` + 提供OPENLINK加载活动、功能信息。 + + + + + [Promise PageManager.show(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.show.html) + 需要基础库: `3.6.7` + 显示已经成功加载信息的开放页面活动、功能。如果调用前未执行 `.load({ ... })` 将自动调用1次并返回加载信息结果。 + + [RealtimeLogManager.addFilterMsg(string msg)](https://developers.weixin.qq.com/minigame/dev/api/base/debug/RealtimeLogManager.addFilterMsg.html) diff --git a/Runtime/Plugins/wx-runtime.xml.meta b/Runtime/Plugins/wx-runtime.xml.meta index 4ebe7034..2cc61387 100644 --- a/Runtime/Plugins/wx-runtime.xml.meta +++ b/Runtime/Plugins/wx-runtime.xml.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 46e59751737871b5c524ff82f6d5be0b +guid: 684da79a42d712bd73e7879d6126499d DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/WX.cs b/Runtime/WX.cs index 9271d69a..cbb9acb6 100644 --- a/Runtime/WX.cs +++ b/Runtime/WX.cs @@ -648,6 +648,7 @@ namespace WeChatWASM /// ## 注意事项 /// - 基础库 v2.10.4 开始支持获取群工具小程序启动信息 /// - 基础库 v2.17.3 开始支持获取群聊小程序消息卡片、群待办小程序启动信息 + /// - 基础库 v3.7.8 支持获取单聊群启动信息,获取的群(含单聊)唯一标识,可用于[聊天工具模式](https://developers.weixin.qq.com/minigame/dev/api/chattool/wx.openChatTool.html)。 /// **示例代码** /// ```js /// wx.getGroupEnterInfo({ @@ -667,7 +668,10 @@ namespace WeChatWASM /// 获取得到的开放数据为以下 json 结构(其中 opengid 为当前群的唯一标识): /// ```json /// { - /// "opengid": "OPENGID" + /// "opengid": "OPENGID", // 多聊群下返回的群唯一标识 + /// "open_single_roomid": "", // 单聊群下返回的群唯一标识 + /// "group_openid": "", // 用户在当前群的唯一标识 + /// "chat_type": 3, // 聊天室类型 /// } /// ``` /// **Tips** @@ -1400,7 +1404,7 @@ namespace WeChatWASM /// /// [wx.openCustomerServiceConversation(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/customer-message/wx.openCustomerServiceConversation.html) /// 需要基础库: `2.0.3` - /// 进入客服会话。要求在用户发生过至少一次 touch 事件后才能调用。后台接入方式与小程序一致,详见 [客服消息接入](#) + /// 进入客服会话。要求在用户发生过至少一次 touch 事件后才能调用。后台接入方式与小程序一致,详见 [客服消息接入](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/customer-message/customer-message.html) /// **注意事项** /// - 在客服会话内点击小程序消息卡片进入小程序时,不能通过 wx.onShow 或 wx.getEnterOptionsSync 等接口获取启动路径和参数,而是应该通过 wx.openCustomerServiceConversation 接口的 success 回调获取启动路径和参数 /// @@ -2150,9 +2154,6 @@ namespace WeChatWASM /// [wx.showShareImageMenu(Object object)](https://developers.weixin.qq.com/minigame/dev/api/share/wx.showShareImageMenu.html) /// 需要基础库: `2.14.3` /// 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 - /// **Bug & Tip** - /// 1. `tip`: `needShowEntrance`分享的图片消息是否要带小程序入口,支持申明类目:商家自营、电商平台、餐饮服务(餐饮服务场所/餐饮服务管理企业、点餐平台、外卖平台)、旅游服务(住宿服务、景区服务、OTA、旅游管理单位)、生活服务(家政服务、丽人服务、宠物(非医院类)、婚庆服务、洗浴保健、休闲娱乐、百货/超市/便利店、开锁服务、营业性演出票务、其他宠物健康服务、洗浴保健平台、共享服务、跑腿、寄存、求职/招聘) - /// 2. `tip`: `needShowEntrance`小游戏所有类目都支持 /// public static void ShowShareImageMenu(ShowShareImageMenuOption callback) { @@ -4035,6 +4036,32 @@ namespace WeChatWASM return WXSDKManagerHandler.Instance.GetLogManager(option); } + /// + /// [[PageManager](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/PageManager.html) wx.createPageManager()](https://developers.weixin.qq.com/minigame/dev/api/open-api/openlink/wx.createPageManager.html) + /// 需要基础库: `3.6.7` + /// 小游戏开放页面管理器,用于启动微信内置的各种小游戏活动、功能页面。具体OPENLINK值由不同的能力渠道获得。 + /// **示例代码** + /// ```js + /// const pageManager = wx.createPageManager(); + /// pageManager.load({ + /// openlink: 'xxxxxxx-xxxxxx', // 由不同渠道获得的OPENLINK值 + /// }).then((res) => { + /// // 加载成功,res 可能携带不同活动、功能返回的特殊回包信息(具体请参阅渠道说明) + /// console.log(res); + /// // 加载成功后按需显示 + /// pageManager.show(); + /// }).catch((err) => { + /// // 加载失败,请查阅 err 给出的错误信息 + /// console.error(err); + /// }) + /// ``` + /// + /// + public static WXPageManager CreatePageManager() + { + return WXSDKManagerHandler.Instance.CreatePageManager(); + } + /// /// [[RealtimeLogManager](https://developers.weixin.qq.com/minigame/dev/api/base/debug/RealtimeLogManager.html) wx.getRealtimeLogManager()](https://developers.weixin.qq.com/minigame/dev/api/base/debug/wx.getRealtimeLogManager.html) /// 需要基础库: `2.14.4` diff --git a/Runtime/wechat-default/check-version.js.meta b/Runtime/wechat-default/check-version.js.meta index 704ba39b..947694dd 100644 --- a/Runtime/wechat-default/check-version.js.meta +++ b/Runtime/wechat-default/check-version.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c4230f9f65d0afb4067ad7f199b27b85 +guid: d78b6fb7d09dbe1bae078947772fbf0d DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/data-package/game.js.meta b/Runtime/wechat-default/data-package/game.js.meta index 55b1dd43..814972bc 100644 --- a/Runtime/wechat-default/data-package/game.js.meta +++ b/Runtime/wechat-default/data-package/game.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 27ba91fd1b81cbeacb6b52573fd85ae4 +guid: 028866913f5004aa0dc1fd8072470e8e DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/events.js.meta b/Runtime/wechat-default/events.js.meta index 1d326791..e9d4ff1c 100644 --- a/Runtime/wechat-default/events.js.meta +++ b/Runtime/wechat-default/events.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 67ed4a3abaa91dc9c1e4b4d16e4dbb68 +guid: 1859edd1f26d66adbe198b0f99b1a7a0 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/game.js.meta b/Runtime/wechat-default/game.js.meta index cc3895aa..a4cd717b 100644 --- a/Runtime/wechat-default/game.js.meta +++ b/Runtime/wechat-default/game.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e752db497c1432e0c0db45433ee1fad4 +guid: 9c58bb45a5325f1e999a5d172ab12403 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/game.json.meta b/Runtime/wechat-default/game.json.meta index 416c5916..398e0f06 100644 --- a/Runtime/wechat-default/game.json.meta +++ b/Runtime/wechat-default/game.json.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 417e286407fe48d98fa3d32a0be8dd2b +guid: fd2b1ba5a78553d11673cde07fbc34b9 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/images/background.jpg.meta b/Runtime/wechat-default/images/background.jpg.meta index 8b12e082..5bd8d312 100644 --- a/Runtime/wechat-default/images/background.jpg.meta +++ b/Runtime/wechat-default/images/background.jpg.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dbbcf68b5add82e8b9af3be557555322 +guid: 5d056b6e6b7b38dc86445b0e12aa5aa0 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/images/unity_logo.png.meta b/Runtime/wechat-default/images/unity_logo.png.meta index c5fc1849..f8c566dc 100644 --- a/Runtime/wechat-default/images/unity_logo.png.meta +++ b/Runtime/wechat-default/images/unity_logo.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 79f2656d94a7155fa52617cee1e1c82d +guid: b9d2e4d94a63065b76b58b040a02a0f3 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/data/index.js.meta b/Runtime/wechat-default/open-data/data/index.js.meta index b0a6a7e3..2ce1c56c 100644 --- a/Runtime/wechat-default/open-data/data/index.js.meta +++ b/Runtime/wechat-default/open-data/data/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9cd86b2766a35bd5e5fabf0c54ddeee5 +guid: 7f8cd25a55131c04d1b6c5f417419c6e DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/data/utils.js.meta b/Runtime/wechat-default/open-data/data/utils.js.meta index df984b0c..3bebeea4 100644 --- a/Runtime/wechat-default/open-data/data/utils.js.meta +++ b/Runtime/wechat-default/open-data/data/utils.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 27ea1d6b12033c02057ced80521b1736 +guid: 18469f9280fd7a991eb76b0a7c78e672 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/index.js.meta b/Runtime/wechat-default/open-data/index.js.meta index 6fbef9eb..0711b99c 100644 --- a/Runtime/wechat-default/open-data/index.js.meta +++ b/Runtime/wechat-default/open-data/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 26fad2620524f1a198423d5bc5da57ab +guid: 5a0b57eac328a2025583e7647cb866b9 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/loading.js.meta b/Runtime/wechat-default/open-data/loading.js.meta index 84e12e00..81246aba 100644 --- a/Runtime/wechat-default/open-data/loading.js.meta +++ b/Runtime/wechat-default/open-data/loading.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3486b81a2a6ccf39f13d79f04537c8f2 +guid: ee8296415b516593f1cf8de3183202bb DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/avatar.png.meta b/Runtime/wechat-default/open-data/render/image/avatar.png.meta index fc5f7866..389c8bdb 100644 --- a/Runtime/wechat-default/open-data/render/image/avatar.png.meta +++ b/Runtime/wechat-default/open-data/render/image/avatar.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 267d4849229da208523e21906566bc67 +guid: 0499ad4f8b6aa8a30fdcf8902300f811 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/button1.png.meta b/Runtime/wechat-default/open-data/render/image/button1.png.meta index 9a877b49..244bd275 100644 --- a/Runtime/wechat-default/open-data/render/image/button1.png.meta +++ b/Runtime/wechat-default/open-data/render/image/button1.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ba788447d16bf43c3d14e7b8a2f823b7 +guid: 35dac1620f08319a23679dbe8b71f21f DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/button2.png.meta b/Runtime/wechat-default/open-data/render/image/button2.png.meta index 5ef86e3d..7e773d4a 100644 --- a/Runtime/wechat-default/open-data/render/image/button2.png.meta +++ b/Runtime/wechat-default/open-data/render/image/button2.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 05bc0a7a5a1c4d51a7a18dc734495366 +guid: 00aaeea05816b8e3d27fef0d1b813390 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/button3.png.meta b/Runtime/wechat-default/open-data/render/image/button3.png.meta index 5a6a78c2..c0202b8f 100644 --- a/Runtime/wechat-default/open-data/render/image/button3.png.meta +++ b/Runtime/wechat-default/open-data/render/image/button3.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8286d999f2acef1444c9c064c1947aa8 +guid: b59fd462295273502ed25208e090c190 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/loading.png.meta b/Runtime/wechat-default/open-data/render/image/loading.png.meta index 6c606447..8bedbe4c 100644 --- a/Runtime/wechat-default/open-data/render/image/loading.png.meta +++ b/Runtime/wechat-default/open-data/render/image/loading.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cf67f985d69017a9c4e9c0783c7cb763 +guid: 8c8ffb6f43e6e0d6755fc23c7736ed57 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/nameBg.png.meta b/Runtime/wechat-default/open-data/render/image/nameBg.png.meta index f8f08f20..2ea6ec0d 100644 --- a/Runtime/wechat-default/open-data/render/image/nameBg.png.meta +++ b/Runtime/wechat-default/open-data/render/image/nameBg.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5a34e5046ed8a73741831e7fce235e75 +guid: 669f32800916e6dff988b1a292a11db4 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/rankAvatar.png.meta b/Runtime/wechat-default/open-data/render/image/rankAvatar.png.meta index 420863d8..07985aec 100644 --- a/Runtime/wechat-default/open-data/render/image/rankAvatar.png.meta +++ b/Runtime/wechat-default/open-data/render/image/rankAvatar.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a8922bfbf763a0992807484636eb1c2c +guid: 451287f69ed252585ef083171d0df702 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/rankBg.png.meta b/Runtime/wechat-default/open-data/render/image/rankBg.png.meta index a5b9376d..280a54e4 100644 --- a/Runtime/wechat-default/open-data/render/image/rankBg.png.meta +++ b/Runtime/wechat-default/open-data/render/image/rankBg.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1acdc8f667e90f6c61273145666e7709 +guid: 09aae9e454cd7f3bdf30e919c2e1ab56 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/shareBg.png.meta b/Runtime/wechat-default/open-data/render/image/shareBg.png.meta index 5001eaa5..eb0bd0d1 100644 --- a/Runtime/wechat-default/open-data/render/image/shareBg.png.meta +++ b/Runtime/wechat-default/open-data/render/image/shareBg.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 96b51fd522badc9195b51528edd74efe +guid: 93d1213adc59501b06eeabc58de2e716 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/image/shareBg2.png.meta b/Runtime/wechat-default/open-data/render/image/shareBg2.png.meta index 78b991b8..008f1eef 100644 --- a/Runtime/wechat-default/open-data/render/image/shareBg2.png.meta +++ b/Runtime/wechat-default/open-data/render/image/shareBg2.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4b4b1b465fcd002143139189d339f922 +guid: bbc8596fd92e50620b36770d5f0e83ef DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/styles/friendRank.js.meta b/Runtime/wechat-default/open-data/render/styles/friendRank.js.meta index 2ea392c3..7f4fbd57 100644 --- a/Runtime/wechat-default/open-data/render/styles/friendRank.js.meta +++ b/Runtime/wechat-default/open-data/render/styles/friendRank.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dd0839e0e483154c0c1a83590f2fba02 +guid: d1a59b2bbe5753377c238b36700b8c16 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/styles/tips.js.meta b/Runtime/wechat-default/open-data/render/styles/tips.js.meta index c964c850..0f9dee25 100644 --- a/Runtime/wechat-default/open-data/render/styles/tips.js.meta +++ b/Runtime/wechat-default/open-data/render/styles/tips.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: af79d7bca9bb442a8769a82da1b3646e +guid: f7fbdd91b6493d05a03c6860fef62fe6 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/tpls/friendRank.js.meta b/Runtime/wechat-default/open-data/render/tpls/friendRank.js.meta index 4703150b..79df0790 100644 --- a/Runtime/wechat-default/open-data/render/tpls/friendRank.js.meta +++ b/Runtime/wechat-default/open-data/render/tpls/friendRank.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fd674ff15b4773bac7a5ea0bc1fedc2e +guid: 67971534c2cc0bf6c4de170ca8099dcd DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/open-data/render/tpls/tips.js.meta b/Runtime/wechat-default/open-data/render/tpls/tips.js.meta index d10e19a3..3fb36837 100644 --- a/Runtime/wechat-default/open-data/render/tpls/tips.js.meta +++ b/Runtime/wechat-default/open-data/render/tpls/tips.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 86286d61507e6b747aa5ac5f5150c2a1 +guid: 64d30dc4d0217277d360b1fffff8c93f DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/plugin-config.js.meta b/Runtime/wechat-default/plugin-config.js.meta index 6fa40377..12e07279 100644 --- a/Runtime/wechat-default/plugin-config.js.meta +++ b/Runtime/wechat-default/plugin-config.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8bc40779fb5c843464e56220c289e80d +guid: 2da4b8af1aaa1177de594c5fe3e79201 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/plugins/check-update.js.meta b/Runtime/wechat-default/plugins/check-update.js.meta index d5a334b6..8e086bf9 100644 --- a/Runtime/wechat-default/plugins/check-update.js.meta +++ b/Runtime/wechat-default/plugins/check-update.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 42d525b498a358dea7e0cbf990cc4115 +guid: 6b2aaa782745e5e152df768267dd3fc3 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/plugins/screen-adapter.js.meta b/Runtime/wechat-default/plugins/screen-adapter.js.meta index f889c599..e437c54c 100644 --- a/Runtime/wechat-default/plugins/screen-adapter.js.meta +++ b/Runtime/wechat-default/plugins/screen-adapter.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a1e65411b61aebac81eb99fefa681def +guid: 40d6f772e7c2a992b1a4fcd3aa5ea05a DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/project.config.json.meta b/Runtime/wechat-default/project.config.json.meta index 61c5e245..e1f4cb62 100644 --- a/Runtime/wechat-default/project.config.json.meta +++ b/Runtime/wechat-default/project.config.json.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2865f239afa9c7d36007f28f3ccd7846 +guid: 8ab70e7283e0c4b81cc128368d084f27 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/texture-config.js.meta b/Runtime/wechat-default/texture-config.js.meta index 9c8a440c..4deaa581 100644 --- a/Runtime/wechat-default/texture-config.js.meta +++ b/Runtime/wechat-default/texture-config.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ea5f20232b13b5d0478320d67c003bb8 +guid: fc1a5312994c59323aeb243041af2946 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-namespace.js b/Runtime/wechat-default/unity-namespace.js index f0db4907..30f8347b 100644 --- a/Runtime/wechat-default/unity-namespace.js +++ b/Runtime/wechat-default/unity-namespace.js @@ -113,6 +113,7 @@ GameGlobal.WebAssembly = GameGlobal.WXWebAssembly; GameGlobal.unityNamespace = GameGlobal.unityNamespace || unityNamespace; GameGlobal.realtimeLogManager = wx.getRealtimeLogManager(); GameGlobal.logmanager = wx.getLogManager({ level: 0 }); +GameGlobal.disableMultiTouch = $DISABLE_MULTI_TOUCH; // 提前监听错误并打日志 function bindGloblException() { // 默认上报小游戏实时日志与用户反馈日志(所有error日志+小程序框架异常) diff --git a/Runtime/wechat-default/unity-namespace.js.meta b/Runtime/wechat-default/unity-namespace.js.meta index bf6a96c7..b8e6cea1 100644 --- a/Runtime/wechat-default/unity-namespace.js.meta +++ b/Runtime/wechat-default/unity-namespace.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dbbc1b55c63d5906c1c4d43cb23f058a +guid: 2e3b3d4f7883e96f35d2fdc990d6bd21 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/TCPSocket/index.js.meta b/Runtime/wechat-default/unity-sdk/TCPSocket/index.js.meta index af3786ce..52cb6bd9 100644 --- a/Runtime/wechat-default/unity-sdk/TCPSocket/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/TCPSocket/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2352c88d66d393adbcfd86736ee16a90 +guid: a99e38d20e3a0569143ddeb2485554d9 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/UDPSocket/index.js.meta b/Runtime/wechat-default/unity-sdk/UDPSocket/index.js.meta index 7e665a53..c3b2a59b 100644 --- a/Runtime/wechat-default/unity-sdk/UDPSocket/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/UDPSocket/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6024b62bcb3447a6644f8827ceb655f4 +guid: 2a4c3ea6d438117f1af7ca60ef70c391 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/ad.js.meta b/Runtime/wechat-default/unity-sdk/ad.js.meta index 4f6ec696..762932b5 100644 --- a/Runtime/wechat-default/unity-sdk/ad.js.meta +++ b/Runtime/wechat-default/unity-sdk/ad.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fd5dbb71eccfaf4515dc4c3e4bea6905 +guid: c92ea9264d6d85a28d98a9bb4c62415b DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/common.js.meta b/Runtime/wechat-default/unity-sdk/audio/common.js.meta index 50146dcb..bcc45220 100644 --- a/Runtime/wechat-default/unity-sdk/audio/common.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/common.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 92a2a80e7e483e9b2ff4f94c64fc3671 +guid: 660ee6c566058987c922a47958845dcb DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/const.js.meta b/Runtime/wechat-default/unity-sdk/audio/const.js.meta index 7fb0a6e4..d51af40d 100644 --- a/Runtime/wechat-default/unity-sdk/audio/const.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/const.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e167e21b4a76680741fec92e9e00641 +guid: 0878f8040589f4ecd33d754c8b0529e1 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/index.js.meta b/Runtime/wechat-default/unity-sdk/audio/index.js.meta index e508a387..a24dff87 100644 --- a/Runtime/wechat-default/unity-sdk/audio/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 81fa18bcf4f9bd1db6e61d598b3c5da1 +guid: 1b11d6df4b656dba467aa6ea8e16615a DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/inner-audio.js.meta b/Runtime/wechat-default/unity-sdk/audio/inner-audio.js.meta index d2f4f3ea..9004c616 100644 --- a/Runtime/wechat-default/unity-sdk/audio/inner-audio.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/inner-audio.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5400bd2da06150c2c847437c6114bfe7 +guid: c6aaa0932253e6ed3d4c95039e21f629 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/store.js.meta b/Runtime/wechat-default/unity-sdk/audio/store.js.meta index 989f93bf..56fd670c 100644 --- a/Runtime/wechat-default/unity-sdk/audio/store.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/store.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 98f6bb6aac352bcdc459695d75b46f0d +guid: ed1dca3d95eddba26ab320aa845faac4 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/unity-audio.js b/Runtime/wechat-default/unity-sdk/audio/unity-audio.js index 11231497..15227940 100644 --- a/Runtime/wechat-default/unity-sdk/audio/unity-audio.js +++ b/Runtime/wechat-default/unity-sdk/audio/unity-audio.js @@ -9,7 +9,7 @@ import { debugLog } from '../utils'; const defaultSoundLength = 441000; -const needGetLength = false; +const needGetLength = true; function jsAudioCreateUncompressedSoundClip(buffer, error, length) { const soundClip = { buffer, @@ -70,6 +70,25 @@ function jsAudioCreateUncompressedSoundClipFromCompressedAudio(audioData, ptr, l }); return soundClip; } +function getSoundLength(getAudio, retryCount = 3) { + return new Promise((resolve, reject) => { + const { duration } = getAudio; + if (duration > 0) { + resolve(duration); + } + else { + if (retryCount > 0) { + + setTimeout(() => { + resolve(getSoundLength(getAudio, retryCount - 1)); + }, 100); + } + else { + reject('getAudio.duration is 0'); + } + } + }); +} function jsAudioCreateCompressedSoundClip(audioData, ptr, length) { const soundClip = { error: false, @@ -103,12 +122,14 @@ function jsAudioCreateCompressedSoundClip(audioData, ptr, length) { if (isSupportBufferURL) { const url = wx.createBufferURL(audioData); soundClip.url = url; + setSoundLength(); WEBAudio.audioBufferLength += length; } else { const tempFilePath = `${TEMP_DIR_PATH}/temp-audio${ptr + length}.mp3`; if (GameGlobal.manager.getCachePath(tempFilePath)) { soundClip.url = tempFilePath; + setSoundLength(); WEBAudio.audioBufferLength += length; } else { @@ -116,6 +137,7 @@ function jsAudioCreateCompressedSoundClip(audioData, ptr, length) { .writeFile(tempFilePath, audioData) .then(() => { soundClip.url = tempFilePath; + setSoundLength(); WEBAudio.audioBufferLength += length; }) .catch((res) => { @@ -124,16 +146,24 @@ function jsAudioCreateCompressedSoundClip(audioData, ptr, length) { }); } } - if (needGetLength && soundClip.url) { - const { audio: getAudio } = createInnerAudio(); - getAudio.src = soundClip.url; - getAudio.onCanplay(() => { - soundClip.length = getAudio.duration * 44100; - setTimeout(() => { - soundClip.length = getAudio.duration * 44100; - getAudio.destroy(); - }, 0); - }); + function setSoundLength() { + if (needGetLength && soundClip.url) { + const { audio: getAudio } = createInnerAudio(); + getAudio.src = soundClip.url; + getAudio.onCanplay(() => { + getSoundLength(getAudio).then((duration) => { + soundClip.length = duration * 44100; + getAudio.destroy(); + }) + .catch((e) => { + if (soundClip.length === 0) { + soundClip.error = true; + printErrMsg(e); + } + getAudio.destroy(); + }); + }); + } } return soundClip; } @@ -219,6 +249,7 @@ export class AudioChannelInstance { this.source.mediaElement.volume = 0; } this.source.mediaElement.onPlay(() => { + debugLog('this.source.mediaElement.onPlay'); if (typeof this.source !== 'undefined') { this.source.isPlaying = true; if (!this.source.loop && this.source.mediaElement) { @@ -240,7 +271,7 @@ export class AudioChannelInstance { } }); this.source.mediaElement.onPause(() => { - debugLog('onPause'); + debugLog('this.source.mediaElement.onPause'); if (typeof this.source !== 'undefined') { this.source.isPlaying = false; if (this.source.stopTicker) { @@ -250,7 +281,7 @@ export class AudioChannelInstance { } }); this.source.mediaElement.onStop(() => { - debugLog('onStop'); + debugLog('this.source.mediaElement.onStop'); if (typeof this.source !== 'undefined') { if (this.source.playAfterStop) { this.source._reset(); @@ -267,7 +298,7 @@ export class AudioChannelInstance { } }); this.source.mediaElement.onEnded(() => { - debugLog('onEnded'); + debugLog('this.source.mediaElement.onEnded'); if (typeof this.source !== 'undefined') { this.source._reset(); this.disconnectSource(); @@ -277,7 +308,7 @@ export class AudioChannelInstance { } }); this.source.mediaElement.onError((e) => { - debugLog('onError', e); + debugLog('this.source.mediaElement.onError', e); printErrMsg(e); const { errMsg } = e; @@ -291,15 +322,17 @@ export class AudioChannelInstance { } }); const fn = () => { + debugLog('this.source.mediaElement.onCanplay'); if (typeof this.source !== 'undefined' && this.source.mediaElement) { - // @ts-ignore - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { duration } = this.source.mediaElement; - setTimeout(() => { - if (soundClip && this.source && this.source.mediaElement) { - soundClip.length = Math.round(Math.max(this.source.mediaElement.duration, 0) * 44100); + getSoundLength(this.source.mediaElement).then((duration) => { + soundClip.length = duration * 44100; + }) + .catch((e) => { + if (soundClip.length === 0) { + soundClip.error = true; + printErrMsg(e); } - }, 0); + }); } }; if (!this.source.canPlayFnList) { @@ -910,7 +943,7 @@ export default { if (isIOS175) { WEBAudio.audioContext?.close(); WEBAudio.audioContext = wx.createWebAudioContext(); - Object.values(WEBAudio.audioInstances).forEach(it => it.resetGain()); + Object.values(WEBAudio.audioInstances).forEach((it) => it.resetGain()); } else { WEBAudio.audioContext?.resume(); @@ -1126,6 +1159,7 @@ export default { if (WEBAudio.audioWebEnabled === 0) { return; } + debugLog('_JS_Sound_SetPaused', channelInstance, paused); const channel = WEBAudio.audioInstances[channelInstance]; if (!!paused !== channel.isPaused()) { if (paused) { diff --git a/Runtime/wechat-default/unity-sdk/audio/unity-audio.js.meta b/Runtime/wechat-default/unity-sdk/audio/unity-audio.js.meta index 95dc67af..5e407d30 100644 --- a/Runtime/wechat-default/unity-sdk/audio/unity-audio.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/unity-audio.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 295b66536976505501aeb4fbccefc9ce +guid: 9221a5da12e829df80230add42c7f2a0 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/audio/utils.js.meta b/Runtime/wechat-default/unity-sdk/audio/utils.js.meta index 6655cbed..69449780 100644 --- a/Runtime/wechat-default/unity-sdk/audio/utils.js.meta +++ b/Runtime/wechat-default/unity-sdk/audio/utils.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b0220a77f19ced18ba8157c961305be6 +guid: 6292886d55e8b77dd9d3195e7b82c07b DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/authorize.js.meta b/Runtime/wechat-default/unity-sdk/authorize.js.meta index 0bb938ab..dd8e2164 100644 --- a/Runtime/wechat-default/unity-sdk/authorize.js.meta +++ b/Runtime/wechat-default/unity-sdk/authorize.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 388521ad6863a2f3bd936341e89f3d28 +guid: 3c709cc743d8f6a4848486834d375733 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/bluetooth/index.js.meta b/Runtime/wechat-default/unity-sdk/bluetooth/index.js.meta index 5b00d45b..7d9122b2 100644 --- a/Runtime/wechat-default/unity-sdk/bluetooth/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/bluetooth/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9ac02125409b0c622aace5692350976b +guid: b50c68c55d630928213104f95bb024a7 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/camera.js.meta b/Runtime/wechat-default/unity-sdk/camera.js.meta index 84a37b75..5b78d84c 100644 --- a/Runtime/wechat-default/unity-sdk/camera.js.meta +++ b/Runtime/wechat-default/unity-sdk/camera.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d4c74f27fff651d90cfd276e29089a97 +guid: 9f37e65efa6fa7eadcfd9c1580ea77e1 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/canvas-context.js.meta b/Runtime/wechat-default/unity-sdk/canvas-context.js.meta index 2ecdb389..f0cfaa15 100644 --- a/Runtime/wechat-default/unity-sdk/canvas-context.js.meta +++ b/Runtime/wechat-default/unity-sdk/canvas-context.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 935e280ff127ed5ed5eb4725c90b591a +guid: f14da6df00225fa057c442fca5c3b416 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/canvas.js.meta b/Runtime/wechat-default/unity-sdk/canvas.js.meta index 55e86fa1..8996f11f 100644 --- a/Runtime/wechat-default/unity-sdk/canvas.js.meta +++ b/Runtime/wechat-default/unity-sdk/canvas.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a2d6fb58778b0a82715575bfc8a62133 +guid: 232e362860010b13e573a946788bf0e9 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/chat.js.meta b/Runtime/wechat-default/unity-sdk/chat.js.meta index de4b9d91..e55137b3 100644 --- a/Runtime/wechat-default/unity-sdk/chat.js.meta +++ b/Runtime/wechat-default/unity-sdk/chat.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7f18cdd24f639ae34e017f457e0f0c4d +guid: 21be94730a54b67528468b39e26903cc DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/cloud.js.meta b/Runtime/wechat-default/unity-sdk/cloud.js.meta index cea2ed67..1a89d3ef 100644 --- a/Runtime/wechat-default/unity-sdk/cloud.js.meta +++ b/Runtime/wechat-default/unity-sdk/cloud.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 45b3bb13ee726042d5474abbf6911985 +guid: a89bbcdbfde27eade3342fbbfa73daad DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/conf.js.meta b/Runtime/wechat-default/unity-sdk/conf.js.meta index 4b74b05b..45a303d7 100644 --- a/Runtime/wechat-default/unity-sdk/conf.js.meta +++ b/Runtime/wechat-default/unity-sdk/conf.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c19f7e2437eb52001dee96f1337d5bf9 +guid: a2db4ee2b254032483583a473a63ad70 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/file-info.js.meta b/Runtime/wechat-default/unity-sdk/file-info.js.meta index 92c6e8cd..0265c130 100644 --- a/Runtime/wechat-default/unity-sdk/file-info.js.meta +++ b/Runtime/wechat-default/unity-sdk/file-info.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bc33c3f301b15bc79dd38cee179fd398 +guid: e662d8f3b73d03250bf3c9a6bc557809 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/fix.js.meta b/Runtime/wechat-default/unity-sdk/fix.js.meta index b9683111..daad60bd 100644 --- a/Runtime/wechat-default/unity-sdk/fix.js.meta +++ b/Runtime/wechat-default/unity-sdk/fix.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 644374450c24e8d95c3a0b5503d81fb2 +guid: 6f90921255cddb5620c988e6ae10122a DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/font/fix-cmap.js.meta b/Runtime/wechat-default/unity-sdk/font/fix-cmap.js.meta index 29df6f1d..7b52e995 100644 --- a/Runtime/wechat-default/unity-sdk/font/fix-cmap.js.meta +++ b/Runtime/wechat-default/unity-sdk/font/fix-cmap.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bae42494dcd52c823acd5d5795fcaa55 +guid: 4619b7bcd6fa5c03769c6a5ac0983495 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/font/index.js.meta b/Runtime/wechat-default/unity-sdk/font/index.js.meta index 9261a33c..4bb98a14 100644 --- a/Runtime/wechat-default/unity-sdk/font/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/font/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 78d802b79a9e64979557fb3cd3e7576f +guid: a42887eb0894defaf9ef0a7d931d5b7d DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/font/read-metrics.js.meta b/Runtime/wechat-default/unity-sdk/font/read-metrics.js.meta index 1b09faba..d3b3d11c 100644 --- a/Runtime/wechat-default/unity-sdk/font/read-metrics.js.meta +++ b/Runtime/wechat-default/unity-sdk/font/read-metrics.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5fa634f1220e1703bf4309f5b67f8441 +guid: 1a75b74d0985a2c310fdb26f4f3ab8dd DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/font/split-sc.js.meta b/Runtime/wechat-default/unity-sdk/font/split-sc.js.meta index dedf11a7..1e41fbb0 100644 --- a/Runtime/wechat-default/unity-sdk/font/split-sc.js.meta +++ b/Runtime/wechat-default/unity-sdk/font/split-sc.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f2edcf57dcde66410a463206c25350ef +guid: 16d32d7c0d2c29717fe88b9ad8adce91 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/font/util.js.meta b/Runtime/wechat-default/unity-sdk/font/util.js.meta index 59d58648..4cae7b84 100644 --- a/Runtime/wechat-default/unity-sdk/font/util.js.meta +++ b/Runtime/wechat-default/unity-sdk/font/util.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2265f4b7cb461affeb6172023c5cb22b +guid: 0ed5c7f32c817231a5179cc9447f5810 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/fs.js.meta b/Runtime/wechat-default/unity-sdk/fs.js.meta index 012ded0e..35746e3d 100644 --- a/Runtime/wechat-default/unity-sdk/fs.js.meta +++ b/Runtime/wechat-default/unity-sdk/fs.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 113cef93fb2d97d9eb5d883e84d73a21 +guid: f949a78638cc43e61f31843b373b14c0 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/game-club.js.meta b/Runtime/wechat-default/unity-sdk/game-club.js.meta index 41b77b7e..09be3c14 100644 --- a/Runtime/wechat-default/unity-sdk/game-club.js.meta +++ b/Runtime/wechat-default/unity-sdk/game-club.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9f43c3a9604775bfb72c9ad3a31813df +guid: c3794d06ae71921926f318b672b3e113 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/game-recorder.js.meta b/Runtime/wechat-default/unity-sdk/game-recorder.js.meta index 7cb8366f..25fa99c8 100644 --- a/Runtime/wechat-default/unity-sdk/game-recorder.js.meta +++ b/Runtime/wechat-default/unity-sdk/game-recorder.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 638379ea86f6d7ef05c2714eb4d9160e +guid: 1d039f18e407e5285072273b5985d184 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/gyroscope/index.js.meta b/Runtime/wechat-default/unity-sdk/gyroscope/index.js.meta index 24bb00e4..a80ece84 100644 --- a/Runtime/wechat-default/unity-sdk/gyroscope/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/gyroscope/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1ad1f78fdf92190771acd990005c3307 +guid: d15b831fd0e54190fd15d6cce267fb0e DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/index.js.meta b/Runtime/wechat-default/unity-sdk/index.js.meta index b57c40a4..664e4d6e 100644 --- a/Runtime/wechat-default/unity-sdk/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 822c8e9cbbd560ff7f5d1054cb99d0bc +guid: 570dc479aad9c0c79c33fdfdbf62ba1a DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/logger.js.meta b/Runtime/wechat-default/unity-sdk/logger.js.meta index 7e730f58..40168060 100644 --- a/Runtime/wechat-default/unity-sdk/logger.js.meta +++ b/Runtime/wechat-default/unity-sdk/logger.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6d34dc76425610db86f84693d55dc9ae +guid: 2950790c2a8289a32460f7815b30bbe5 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/mobileKeyboard/index.js.meta b/Runtime/wechat-default/unity-sdk/mobileKeyboard/index.js.meta index 45831230..756d49ae 100644 --- a/Runtime/wechat-default/unity-sdk/mobileKeyboard/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/mobileKeyboard/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ea32420a90c5bb3affd0fd23834fc3ca +guid: 5ee9f3077c7606176770fb81eab69b1b DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/module-helper.js.meta b/Runtime/wechat-default/unity-sdk/module-helper.js.meta index 9161ebff..75f9b6aa 100644 --- a/Runtime/wechat-default/unity-sdk/module-helper.js.meta +++ b/Runtime/wechat-default/unity-sdk/module-helper.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1b6772ba199d536366c5e30595ec3661 +guid: 17e4afb81de96d3dd094148b7f01ecef DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/open-data.js.meta b/Runtime/wechat-default/unity-sdk/open-data.js.meta index ec864fe4..6c6c3e1c 100644 --- a/Runtime/wechat-default/unity-sdk/open-data.js.meta +++ b/Runtime/wechat-default/unity-sdk/open-data.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 88d9a8103a56c8a2aaef1ca04aab5aa0 +guid: 6a8b4b3b04fd65c81d0a9b97fc5f9097 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/recorder.js.meta b/Runtime/wechat-default/unity-sdk/recorder.js.meta index 00fe1fd3..b33cd7de 100644 --- a/Runtime/wechat-default/unity-sdk/recorder.js.meta +++ b/Runtime/wechat-default/unity-sdk/recorder.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2af36b6df75026a47725d0a935a81b8c +guid: 19b3f75168f5aeb751c5b05e7c356f1d DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/resType.js b/Runtime/wechat-default/unity-sdk/resType.js index 1cc38b16..fbc6da17 100644 --- a/Runtime/wechat-default/unity-sdk/resType.js +++ b/Runtime/wechat-default/unity-sdk/resType.js @@ -233,6 +233,14 @@ export const ResType = { GetLogManagerOption: { level: 'number', }, + LoadOption: { + openlink: 'string', + query: 'object', + }, + ShowOption: { + openlink: 'string', + query: 'object', + }, Path2D: {}, OnCheckForUpdateListenerResult: { hasUpdate: 'bool', diff --git a/Runtime/wechat-default/unity-sdk/resType.js.meta b/Runtime/wechat-default/unity-sdk/resType.js.meta index 7312cc21..53448c29 100644 --- a/Runtime/wechat-default/unity-sdk/resType.js.meta +++ b/Runtime/wechat-default/unity-sdk/resType.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 72d47d639bf2e778668615949553fa19 +guid: 73cba28f17bdd1bfef2c08fca09fa02e DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/resTypeOther.js.meta b/Runtime/wechat-default/unity-sdk/resTypeOther.js.meta index 56f10c02..be7e6dce 100644 --- a/Runtime/wechat-default/unity-sdk/resTypeOther.js.meta +++ b/Runtime/wechat-default/unity-sdk/resTypeOther.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7ddd43de792a3ff6b32178474bf375dc +guid: 5bddefbf25856dcbe35cecd73caaf917 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/response.js.meta b/Runtime/wechat-default/unity-sdk/response.js.meta index a7476f6f..d484efd2 100644 --- a/Runtime/wechat-default/unity-sdk/response.js.meta +++ b/Runtime/wechat-default/unity-sdk/response.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 86a6b30602aae4af31c0bf83e964dd35 +guid: f554a7c1b5964b82508fe86d108f085c DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/sdk.js.meta b/Runtime/wechat-default/unity-sdk/sdk.js.meta index 6cc175a6..bacacbf5 100644 --- a/Runtime/wechat-default/unity-sdk/sdk.js.meta +++ b/Runtime/wechat-default/unity-sdk/sdk.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8097c7e67dd43585c8b0e39f101c7a9c +guid: 3778273dc1e648d157cc0ce4ffcff6c3 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/share.js.meta b/Runtime/wechat-default/unity-sdk/share.js.meta index 861b42ca..c4e1872e 100644 --- a/Runtime/wechat-default/unity-sdk/share.js.meta +++ b/Runtime/wechat-default/unity-sdk/share.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7eba0f0d9cfe944cab48fc761d62ad25 +guid: 379ab98398f00d0d36a94848d241be2f DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/storage.js.meta b/Runtime/wechat-default/unity-sdk/storage.js.meta index 7af4f532..7d24ef22 100644 --- a/Runtime/wechat-default/unity-sdk/storage.js.meta +++ b/Runtime/wechat-default/unity-sdk/storage.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c94be2b0318a021245b1746c097dc1d0 +guid: be17e9119e92b75952c82b32647b89a9 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/texture.js.meta b/Runtime/wechat-default/unity-sdk/texture.js.meta index 50ba8d5b..9cf4a52a 100644 --- a/Runtime/wechat-default/unity-sdk/texture.js.meta +++ b/Runtime/wechat-default/unity-sdk/texture.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 535d5252cdea5aab37e6b1b79f68796c +guid: ee4a00652e9f04715edc94fb1fec5f07 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/touch/index.js.meta b/Runtime/wechat-default/unity-sdk/touch/index.js.meta index 048ce573..14585c26 100644 --- a/Runtime/wechat-default/unity-sdk/touch/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/touch/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 10d121c1d98cb43545b7ae8af3a9c049 +guid: 403aebe98a1ac2f6763d3c54636bdc18 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/upload-file.js.meta b/Runtime/wechat-default/unity-sdk/upload-file.js.meta index 7146c3f7..2387b894 100644 --- a/Runtime/wechat-default/unity-sdk/upload-file.js.meta +++ b/Runtime/wechat-default/unity-sdk/upload-file.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e557aa5faadc1229de57a038c8c6581d +guid: 0444cf132bf1ba0b552102a6862b427c DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/userinfo.js.meta b/Runtime/wechat-default/unity-sdk/userinfo.js.meta index f92ef274..1e35f5ac 100644 --- a/Runtime/wechat-default/unity-sdk/userinfo.js.meta +++ b/Runtime/wechat-default/unity-sdk/userinfo.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3c8ffdd21cf3dfaa83c0810d8dc37598 +guid: 8fcadb5ccd31933debc0dbe054791a03 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/util.js.meta b/Runtime/wechat-default/unity-sdk/util.js.meta index 496ce0d1..5c97e20e 100644 --- a/Runtime/wechat-default/unity-sdk/util.js.meta +++ b/Runtime/wechat-default/unity-sdk/util.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4ff3bcaffeb06ead7d13f676ae7642e1 +guid: 0db74bbdbbafe6fc7d4bd31fe9ab51f4 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/utils.js.meta b/Runtime/wechat-default/unity-sdk/utils.js.meta index 272425ee..5bcba0a4 100644 --- a/Runtime/wechat-default/unity-sdk/utils.js.meta +++ b/Runtime/wechat-default/unity-sdk/utils.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d71c9194dec6ac6b3c0476772eb78272 +guid: 94087b81bd882adfd58ee20c19941022 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/video.js.meta b/Runtime/wechat-default/unity-sdk/video.js.meta index 43edca01..cb149940 100644 --- a/Runtime/wechat-default/unity-sdk/video.js.meta +++ b/Runtime/wechat-default/unity-sdk/video.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cb785bac2706b2aaa2231a5fbebf83aa +guid: e0103a4feafc4602bd9ab036f24ae35d DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/unity-sdk/video/index.js.meta b/Runtime/wechat-default/unity-sdk/video/index.js.meta index 62ec9136..e32b6709 100644 --- a/Runtime/wechat-default/unity-sdk/video/index.js.meta +++ b/Runtime/wechat-default/unity-sdk/video/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2712de5da5f23dcb4717a626fdd1517f +guid: 62c38e6ee76119ee96fd2afe6a219f30 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/wasmcode/game.js.meta b/Runtime/wechat-default/wasmcode/game.js.meta index 9490b8b4..2a2749ac 100644 --- a/Runtime/wechat-default/wasmcode/game.js.meta +++ b/Runtime/wechat-default/wasmcode/game.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d04a798df6fc457f71378769b036cdd3 +guid: ebf4345cd96b579cb18c4616baa30e90 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/weapp-adapter.js b/Runtime/wechat-default/weapp-adapter.js index 1ad847b9..d6d67579 100644 --- a/Runtime/wechat-default/weapp-adapter.js +++ b/Runtime/wechat-default/weapp-adapter.js @@ -1197,8 +1197,52 @@ const isWK = false; identifier: formatIdentifier(v.identifier, type, changed) }; } + let activeTouchId = -1; function touchEventHandlerFactory(type) { return function (event) { + // 禁止多点触控 + if (GameGlobal.disableMultiTouch) { + if (event.touches.length > 0 || event.changedTouches.length > 0) { + if (activeTouchId !== -1) { + const touch = event.touches.find(v => v.identifier === activeTouchId); + const changedTouch = event.changedTouches.find(v => v.identifier === activeTouchId); + event.touches = touch ? [touch] : []; + event.changedTouches = changedTouch ? [changedTouch] : []; + } + else { + event.touches = event.touches.slice(0, 1); + event.changedTouches = event.changedTouches.slice(0, 1); + } + let getFirstTouchId; + if (event.changedTouches.length > 0) { + getFirstTouchId = event.changedTouches[0].identifier; + } + if (type === 'touchstart') { + if (activeTouchId === -1) { + activeTouchId = getFirstTouchId; + } + else { + return; + } + } + else if (type === 'touchmove') { + if (getFirstTouchId !== activeTouchId) { + return; + } + } + else if (type === 'touchend') { + if (getFirstTouchId === activeTouchId) { + activeTouchId = -1; + } + else { + return; + } + } + else if (type === 'touchcancel') { + activeTouchId = -1; + } + } + } const touchEvent = new TouchEvent(type); touchEvent.touches = event.touches.map(v => formatTouchEvent(v, event.type)); touchEvent.targetTouches = Array.prototype.slice.call(event.touches).map(v => formatTouchEvent(v, event.type)); diff --git a/Runtime/wechat-default/weapp-adapter.js.meta b/Runtime/wechat-default/weapp-adapter.js.meta index b0386579..701abce6 100644 --- a/Runtime/wechat-default/weapp-adapter.js.meta +++ b/Runtime/wechat-default/weapp-adapter.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 06320a861e2901bd98c6616a2e655aba +guid: 4e1aa52770a25ab00634ed06a77bd6e3 DefaultImporter: externalObjects: {} userData: diff --git a/Runtime/wechat-default/workers/response/index.js.meta b/Runtime/wechat-default/workers/response/index.js.meta index c4951fb8..de08efab 100644 --- a/Runtime/wechat-default/workers/response/index.js.meta +++ b/Runtime/wechat-default/workers/response/index.js.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bf001f4fda464eb3579fd4f570965fba +guid: a2956bda2e758bdc3a820ee23dd3d010 DefaultImporter: externalObjects: {} userData: