- 编辑器中可以正常运行,使用真机预览会报下面的错误
ScriptEngine 0xae33e180, loadScript failed [/game_sub_package/stage1/game.js] cost time: 303/-1 ms [compile/run] exception: (compile [/game_sub_package/stage1/game.js] failed) Uncaught SyntaxError: Duplicate __proto__ fields are not allowed in object literals
2020-08-17 - qq小游戏支付
qq小游戏在开发工具上一直返回errMsg:requestMidasPayment:fail errCode:-3 prepayId和starCurrency的值都没问题,有人遇到过吗?怎么解决的? public async pay(_prepayId,money) { console.log("_prepayId:撒娇的:" + _prepayId); return new Promise((resolve,reject) => { qq.requestMidasPayment({ prepayId:_prepayId, starCurrency:money, setEnv:0, success:function(res) { resolve(res); },fail({errMsg, errCode}) { // 支付失败 console.log("errMsg:"+errMsg,"errCode:" + errCode) } }); }) }
2019-09-18