这是因为 Scripting Backend 设置的不对 正确方式 Project Settings->Player->Configuration->Scripting Backend 设置为 IL2CPP
unity工程转微信小游戏,加载的时候报错按照https://unity.cn/instantgame/docs/WechatMinigame/Demo/文档中演示操作从unity导入到微信开发者工具,在预览的时候时候遇到的问题 [图片] dotnet.runtime.8.0.0.ltwt23bs1c.js:3 MONO_WASM: instantiate_wasm_module() failed CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) dt @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 webgl.wasm.framework.unityweb.js:4 MONO_WASM: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) u @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 quit_ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 Me @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 webgl.wasm.framework.unityweb.js:4 Error in mono_download_assets: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ webgl.wasm.framework.unityweb.js:4 Promise.catch (async) _callee14$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Q @ webgl.wasm.framework.unityweb.js:4 Q @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ fix.js:25 setTimeout (async) window.setTimeout @ fix.js:22 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 quit_ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 Me @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 Promise.catch (async) _callee14$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Q @ webgl.wasm.framework.unityweb.js:4 Q @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ fix.js:25 setTimeout (async) window.setTimeout @ fix.js:22 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 8CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) plugin.js:93 [PLUGIN LOG 09:49.50.650] 开始下载wasm代码包 plugin.js:93 [PLUGIN TIME LOG 09:49.50.652] 下载wasm代码包: 2ms 5unity-namespace.js? [sm]:125 unhandledRejection: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ unity-namespace.js? [sm]:125 3unity-namespace.js? [sm]:125 unhandledRejection: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5)
04-23请问解决了么
米大师支付2.0 返回90010错误问题点:客户端多次请求查询余额接口,前面几次都是可以成功返回余额不足, 多试几次后会返回:{"errcode":90010,"errmsg":"[signature] signature is invalid traceid: 33575907 rid: 638f127a-1354b11d-733ccc65"} 而且客户端每次调用服务器接口之前都会 wx.checkSession 校验session_key是否有效,并且每次校验返回都是有效的。 下面请求的session_key:ou+4NlDJeMTj1J86ku8nuA== 具体服务端打印的请求日志如下,下面日志里面请求的URL 的 access_token 用【123】替代,实际请求日志是线上access_token;只贴出了前一次成功下一次失败的日志。 【成功请求日志】 2022-12-06 17:59:20:264 [GetBalance]请求URL:https://api.weixin.qq.com/wxa/game/getbalance?access_token=123&signature=231a6cf2b42f9c46e90011f71694581f9635d009d37a4b0dcc46ceecea78e401&sig_method=hmac_sha256&pay_sig=c43f34418c1232d7f01e98250c173a3fc7b105d363c059283edb12e89816fb61 2022-12-06 17:59:20:264 [GetBalance]请求参数:{ "openid": "osyGm5SzCxTD9Snsv8MWT1DXWJoA", "offer_id": "1450044152", "ts": 1670320760, "zone_id": "1", "env": 1 } 2022-12-06 17:59:20:780 [GetBalance]查询余额返回值:{"errcode":0,"errmsg":"ok","balance":0,"present_balance":0,"sum_save":0,"sum_present":0,"sum_balance":0,"sum_cost":0,"first_save":true} 【失败请求日志】 2022-12-06 17:59:22:389 [GetBalance]请求URL:https://api.weixin.qq.com/wxa/game/getbalance?access_token=123&signature=b1e49f9199c897e48fa0a97f872eff1592f06a753c3ee676021bd8960fe5d3df&sig_method=hmac_sha256&pay_sig=30c528be81192fdcdf790b0dcb040aad4f053809c97a39997035017ab0334448 2022-12-06 17:59:22:389 [GetBalance]请求参数:{ "openid": "osyGm5SzCxTD9Snsv8MWT1DXWJoA", "offer_id": "1450044152", "ts": 1670320762, "zone_id": "1", "env": 1 } 2022-12-06 17:59:22:623 [GetBalance]查询余额返回值:{"errcode":90010,"errmsg":"[signature] signature is invalid traceid: 33575907 rid: 638f127a-1354b11d-733ccc65"}
03-07