小游戏
四川麻将小游戏打不开 [图片]
您好,MP后台提示有违规需要备案,但小程序早已备案,且查看违规记录时,该记录的信息显示异常,没有显示违反规则等信息,也没有出现【申诉】按钮,请问可能是什么原因。
小程序游戏分享链接后,无法点击链接领取,必须选中链接重新加载后才能进去。 居然无法上传视频
原生模板广告使用的是优选模式,横幅广告,我发现不是一定会出现错误,而是出现那些类似试玩游戏广告时,就会产生错误。麻烦官方看看问题出在哪? 详细错误信息如下: (in promise) SystemError (appServiceSDKScriptError) {"errno":4,"errMsg":"operateVideoPlayer:fail:internal error"} Object {"errno":4,"errMsg":"operateVideoPlayer:fail:internal error"} Object<div class="luna-console-json luna-console-hidden"></div> at V.formatMsg (wagame://servicewechat.com/WAGameVConsole.html:1:46398) at new V (wagame://servicewechat.com/WAGameVConsole.html:1:43388) at N.insertSync (wagame://servicewechat.com/WAGameVConsole.html:7:11627) at wagame://servicewechat.com/WAGameVConsole.html:7:13092
[图片] [图片] 微信小游戏现在支持连接多个蓝牙设备,并同时监听它们的特征值变化吗?
无限唯一解数独,算法生成谜题,告别题荒!
如题,有办法更新旧主体的备案信息中的手机号或者使用其他验证方式(人脸)进行注销吗 现在站内信已经通知30内没有重新备案会封禁基础功能 很急急急急
鸿蒙热启动,点击群链接返回游戏,wx.onShow监听获得的参数里query信息为空
pc端(mac和windows)直接调用wx.createImageData(730, 1)接口就报错 [图片]
最后一次接入买量测试还正常,之后也没有改动过sdk,不知道这个异常是什么引起的。打开腾讯广告 DataNexus web后台会报这个提示!有懂得大神请赐教[图片]
我想在主域获取到我的好友信息。想在子域发消息给主域。但是找不到postMessage方法。 如果这个不行,请问有什么办法可以实现????
unzip真机调试的时候返回错误"errMsg":"unzip:fail write entry",微信文档也没有对应的解释
安卓版本小游戏不支持获取手机号? 后续有支持计划吗 ? 如果我在内部使用第三方 短信验证 违规吗 ?
小游戏2023年4月~11月,在上海羽涛产生了虚拟支付费用,并且完成了出账 2023年4月~9月,这部分费用显示开票失败,需要先更改抬头主体后开发票; 2023年10月~11月,已经用广州尘沙主体出票了,但是需要退票重新用上海羽涛主体开票; 请问需要如何进行处理
APPID:wx7b4a606d1110943a,官方出来解释一下 [图片]
小游戏审核都超过审核日期了,还没有审核结果,问哪个机构都不知道?无语了 APPID:wx7b4a606d1110943a [图片]
关键是这个主管部门无论是打电话到云南省的新闻出版局,通信管理局,还是广东省的新闻出版局,通信管理局,都说不知道,没看到让我们来问腾讯,腾讯又说不归他们管,这怎么整?
求助管理员和大佬们~~~ 小游戏分享,只自己可见,不论是主动分享,被动分享,分享的是后台审核过的图,或者本地的图,或者截图,都是一样结果,自己可见,别人看白板。 但是分享朋友圈,是所有人可见。这是为什么呀? [图片][图片] private initWeChatShare(): void { const wxObj: any = (typeof wx !== 'undefined') ? wx : null; if (!wxObj || this._shareInited) return; const TITLE = '快来搭配专属手串!'; const IMAGE_URL_ID = 'OMWjjgZETmaBRQJLS8l6****'; const IMAGE_URL = 'https://mmocgame.qpic.cn/wechatgame/15z6t24X47m2ibArrH7rs3FgjibeTLEibZmANUibDrSuibxtyNr8K4kQibm4uSPG*****'; // 完整URL const env = wx.getAccountInfoSync?.().miniProgram?.envVersion || 'release'; // develop/trial/release wx.showShareMenu({ menus: ['shareAppMessage', 'shareTimeline'] }); // 右上角“转发” wx.onShareAppMessage(() => { const env = wx.getAccountInfoSync?.().miniProgram?.envVersion || 'release'; if (env === 'release') { // 正式版:用审核图片 return { title: TITLE, imageUrlId: IMAGE_URL_ID, imageUrl: IMAGE_URL }; } else { // 开发版/体验版:只用 imageUrl(审核图可能不生效) return { title: TITLE, imageUrl: IMAGE_URL // 不加 imageUrlId }; } }); // 朋友圈 wx.onShareTimeline?.(() => { return { title: TITLE, imageUrl: IMAGE_URL }; // ✅ 统一用CDN图片 }); this._shareInited = true; } private async onShareClick(): Promise<void> { const wxApi = (globalThis as any).wx; if (!wxApi || !wxApi.shareAppMessage) return; const hostNode = this.bagStringDisplayContainer ?? this.beadManager?.getBeadContainer?.(); let oldScale: Vec3 | null = null; let oldPos: Vec3 | null = null; const SCALE = 0.75; const SHIFT_Y = -20; try { if (hostNode) { oldScale = hostNode.scale.clone(); oldPos = hostNode.position.clone(); hostNode.setScale(oldScale.x * SCALE, oldScale.y * SCALE, oldScale.z); hostNode.setPosition(oldPos.x, oldPos.y + SHIFT_Y, oldPos.z); } await new Promise(r => setTimeout(r, 16)); const canvas: any = (globalThis as any).cc?.game?.canvas || (globalThis as any).canvas; const cw = canvas.width, ch = canvas.height; const TOP_PCT = 0.175; const TITLE_MARGIN_PCT = 0.02; const EXTRA_UP_PX = 0; const EXTRA_DOWN_PX = 0; const cam = this._getAnyCamera(); const titleRect = this._getNodeScreenRect(this.stringNameLabel.node, cam, ch); const top = Math.max(0, Math.floor(ch * TOP_PCT) - EXTRA_UP_PX); const bottom = Math.max(top + 100, (titleRect.y - Math.floor(ch * TITLE_MARGIN_PCT)) + EXTRA_DOWN_PX); let h = Math.max(100, bottom - top); let w = Math.floor(h * 5 / 4); if (w > cw) { w = cw; h = Math.floor(w * 4 / 5); } const x = Math.floor((cw - w) / 2); const y = top; console.log(`截图区域: x=${x}, y=${y}, w=${w}, h=${h}`); // const tempFilePath = await new Promise<string>((resolve, reject) => { wxApi.canvasToTempFilePath({ canvas: canvas, // 👈 加这个参数 x, y, width: w, height: h, destWidth: 500, destHeight: 400, fileType: 'jpg', quality: 0.9, success: (res: any) => { console.log('📸 截图成功:', res.tempFilePath); resolve(res.tempFilePath); }, fail: (err: any) => reject(err), }); }); // ✅ 直接分享本地临时文件 wxApi.shareAppMessage({ title: '快来搭配你的专属手串!', imageUrl: tempFilePath // 关键:直接用本地路径! }); } catch (e) { console.error('分享失败', e); // 兜底:用审核图片 wxApi.shareAppMessage({ title: '快来搭配你的专属手串!', imageUrlId: 'OMWjjgZETmaBRQJLS8l6****', imageUrl: 'https://mmocgame.qpic.cn/wechatgame/15z6t24X47m2ibArrH7rs3FgjibeTLEibZmANUibDrSuibxtyNr8K4kQibm4uSPG*****' }); } finally { if (hostNode && oldScale && oldPos) { hostNode.setScale(oldScale); hostNode.setPosition(oldPos); } } } /** 取任意可用 Camera(UI 或主相机都行) */ private _getAnyCamera(): Camera | null { const scene = director.getScene(); const cam = scene?.getComponentInChildren(Camera); return cam || null; } /** 把 UI 节点的包围盒换算成“相对画布顶部”的屏幕矩形 */ private _getNodeScreenRect(node: Node, cam: Camera | null, canvasHeight: number) { const ui = node.getComponent(UITransform); if (!ui || !cam) return { x: 0, y: canvasHeight, width: 0, height: 0 }; const w = ui.width, h = ui.height; // 世界坐标的左上/右下 const tlw = ui.convertToWorldSpaceAR(new Vec3(-ui.anchorX * w, (1 - ui.anchorY) * h, 0)); const brw = ui.convertToWorldSpaceAR(new Vec3((1 - ui.anchorX) * w, -ui.anchorY * h, 0)); // 转屏幕(y 为自下向上),再转成自上向下 const tls = cam.worldToScreen(tlw); const brs = cam.worldToScreen(brw); const x = Math.floor(Math.min(tls.x, brs.x)); const width = Math.floor(Math.abs(brs.x - tls.x)); const yFromBottomTop = Math.max(tls.y, brs.y); // 上边的 y(自下向上) const y = Math.floor(canvasHeight - yFromBottomTop); // 转为自上向下 const height = Math.floor(Math.abs(brs.y - tls.y)); return { x, y, width, height }; }
wx.createInferenceSession真机测试没问题,但在体验版或者预览版本上返回undefined 打开vconsole,发现了这个报错信息: SystemError (gameSDKScriptError) Cannot read properties of undefined (reading 'CreateAsync') TypeError: Cannot read properties of undefined (reading 'CreateAsync') at new v (WAGame.js:1:275114) at Object.x (WAGame.js:1:281564) at C (WAGame.js:1:1277456) at Object.p (WAGame.js:1:1279598) at Object.t [as createInferenceSession] (WAGameSubContext.js:1:174473) at na (game.js:88:24627) at Object.success (game.js:88:20717) at Object.t (WAGameSubContext.js:1:174473) at C.forEach.v.<computed> (WAGame.js:1:1277093) at p (WAGame.js:1:210137) Cannot read properties of undefined (reading 'CreateAsync') TypeError: Cannot read properties of undefined (reading 'CreateAsync') at new v (WAGame.js:1:275114) at Object.x (WAGame.js:1:281564) at C (WAGame.js:1:1277456) at Object.p (WAGame.js:1:1279598) at Object.t [as createInferenceSession] (WAGameSubContext.js:1:174473) at na (game.js:88:24627) at Object.success (game.js:88:20717) at Object.t (WAGameSubContext.js:1:174473) at C.forEach.v.<computed> (WAGame.js:1:1277093) at p (WAGame.js:1:210137)<div class="luna-console-json luna-console-hidden"></div> at V.formatMsg (wagame://servicewechat.com/WAGameVConsole.html:1:46398) at new V (wagame://servicewechat.com/WAGameVConsole.html:1:43388) at N.insertSync (wagame://servicewechat.com/WAGameVConsole.html:7:11627) at wagame://servicewechat.com/WAGameVConsole.html:7:13092
Error: SystemError (appServiceSDKScriptError) {"errMsg":"insertTextView:fail parent 32773 not found"} at Function.errorReport (VM102 WAGame.js:1) at Object.<anonymous> (VM102 WAGame.js:1) at Object.cb (VM102 WAGame.js:1) at K._privEmit (VM102 WAGame.js:1) at K.emit (VM102 WAGame.js:1) at VM102 WAGame.js:1 at i (VM102 WAGame.js:1) at Ue (VM102 WAGame.js:1) at Object.qe (VM102 WAGame.js:1) at re (VM102 WAGame.js:1)(env: Windows,mg,1.06.2504030; lib: 3.10.2) Error: SystemError (appServiceSDKScriptError) {"errMsg":"updateTextView:fail 32774 not found"} at Function.errorReport (VM102 WAGame.js:1) at Object.<anonymous> (VM102 WAGame.js:1) at Object.cb (VM102 WAGame.js:1) at K._privEmit (VM102 WAGame.js:1) at K.emit (VM102 WAGame.js:1) at VM102 WAGame.js:1 at i (VM102 WAGame.js:1) at Ue (VM102 WAGame.js:1) at Object.qe (VM102 WAGame.js:1) at re (VM102 WAGame.js:1)(env: Windows,mg,1.06.2504030; lib: 3.10.2) 但是后续广告可以正常加载展示