- 小程序体验版连接wss刚开始可以,后来就报错,是ssl证书问题吗?
小程序体验版连接wss,地址wss://test.jph.xiashengjituan.com/websocket/kefu刚开始可以,后来就报错 : open fail: _code:8 _msg:tls handshake failed。 在开发工具,web上,网页测试工具,postman测试没有问题。 证书检测如下,感觉也没啥问题。 [图片] 证书是用的阿里云的免费证书, 因为没有预算买,也没法用收费的证书测试. 实在找不到原因。麻烦各位大佬,还有官方大佬帮忙看看。
2023-09-14 - 小游戏加载模型在真机上报错Missing built-in atob(),开发工具上不出错
小游戏加载模型在开发工具上不出错,真机上出错 真机上报错如下: Error: Unable to decode base64 in this environment. Missing built-in atob() or Buffer()>
2020-02-28 - wx.createCamera的回调函数中直接调用camera.takePhoto为什么不成功?
在wx.createCamera的回调函数success或者complete中调用camra.takePhoto获取到的返回对象tempImagepath为undefinded.示例代码: camera.takePhoto("normal").then( res => { console.log(`tempImagePath===${res.tempImagePath}`) console.log(res) } ) 延时调用camera.takePhoto是可以获取到tempImagePath. 示例代码: setTimeout( function () { camera.takePhoto("normal").then( res => { console.log(`tempImagePath===${res.tempImagePath}`) console.log(res) } )}, 1000) 但是感觉手动设置延时,并不是很准确,具体应该怎么判断什么时候可以调用camera.takePhoto
2020-02-16 - wx.createCamera的回调函数中直接调用camera.takePhoto为什么不成功?
在wx.createCamera的回调函数success或者complete中调用camra.takePhoto获取到的返回对象tempImagepath为undefinded.示例代码: camera.takePhoto("normal").then( res => { console.log(`tempImagePath===${res.tempImagePath}`) console.log(res) } ) 延时调用camera.takePhoto是可以获取到tempImagePath. 示例代码: setTimeout( function () { camera.takePhoto("normal").then( res => { console.log(`tempImagePath===${res.tempImagePath}`) console.log(res) } )}, 1000) 但是感觉手动设置延时,并不是很准确,具体应该怎么判断什么时候可以调用camera.takePhoto
2020-02-16 - 微信小游戏中可以使用适用于微信小程序的第三方插件吗?
微信小游戏中可以使用适用于微信小程序的第三方插件吗。 微信小程序可以在小程序管理后台的“设置-第三方服务-插件管理”中添加插件,微信小游戏我没有找到,微信小游戏可以用类似的方式添加插件。一个插件在微信小程序中可以使用,在微信小游戏中也同样可以使用吗?
2020-02-08