微信小程序云支付接收参数问题?
发布于 7 年前 作者 lei35 12392 次浏览 来自 问答

console.log("&&&&&&&&&&&&&&&="+orderid);

  const res = await cloud.cloudPay.unifiedOrder({

    "body" : "成人高考报名费用",

    "outTradeNo" :event.orderid,

    "spbillCreateIp" : "180.137.40.115",

    "subMchId" : "1386754102",

    "nonceStr" : "2323322323fds",

    "totalFee" : 100,

    "envId": "crgk-wr7ht",

    "functionName": "good",

    "tradeType":"JSAPI"

  })



我测试已经接收到了orderid,但是通过event.orderid传递给统一下单时,报如下错:

返回结果

{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501001 resource system error | errMsg: unifiedOrder:fail wx api error: -202\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:375:19)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}

日志

START RequestId: bcb2fcab-a53a-11ea-8231-525400828667

Event RequestId: bcb2fcab-a53a-11ea-8231-525400828667

2020-06-03T01:37:09.483Z &&&&&&&&&&&&&&&=1591148225183

ERROR RequestId:bcb2fcab-a53a-11ea-8231-525400828667 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501001 resource system error | errMsg: unifiedOrder:fail wx api error: -202\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:375:19)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}

END RequestId: bcb2fcab-a53a-11ea-8231-525400828667

Report RequestId: bcb2fcab-a53a-11ea-8231-525400828667 Duration:71ms Memory:256MB MemUsage:32.031250MB



回到顶部