1***@163.com
1***@163.com
  • 发布:2023-05-14 18:30
  • 更新:2023-05-18 09:02
  • 阅读:158

【报Bug】微信小程序支付回调报错

分类:uniCloud

产品分类: uniCloud/App

示例代码:

请求入参: {
"args": {
"path": "/payNotify/wxpay-mp",
"httpMethod": "POST",
"headers": {
"content-length": "773",
"x5-uuid": "598f5c1a94d44c065235fe33b54b172e",
"x-client-ip": "101.226.103.15",
"x-forwarded-for": "101.226.103.15, 39.96.130.3",
"pragma": "no-cache",
"accept": "/",
"x-real-ip": "101.226.103.15",
"host": "fc-mp-4e66a938-7eba-4c40-a9df-b5cbb3d6314d.next.bspapp.com",
"content-type": "text/xml",
"x-forwarded-by": "172.28.211.114:80",
"user-agent": "Mozilla/4.0"
},
"queryStringParameters": {},
"isBase64Encoded": false,
"body": "<xml><appid><![CDATA[wx1f78d8b173aa43c0]]></appid>\n<bank_type><![CDATA[OTHERS]]></bank_type>\n<cash_fee><![CDATA[1]]></cash_fee>\n<fee_type><![CDATA[CNY]]></fee_type>\n<is_subscribe><![CDATA[N]]></is_subscribe>\n<mch_id><![CDATA[1633935395]]></mch_id>\n<nonce_str><![CDATA[dfh73jrhkeu1e3m4]]></nonce_str>\n<openid><![CDATA[obR5T4wzf7cH-RUD2E1hyH-G6qNk]]></openid>\n<out_trade_no><![CDATA[2305141825581095189619448]]></out_trade_no>\n<result_code><![CDATA[SUCCESS]]></result_code>\n<return_code><![CDATA[SUCCESS]]></return_code>\n<sign><![CDATA[1CA8057953D22EB67197C768C8955FDF]]></sign>\n<time_end><![CDATA[20230514182602]]></time_end>\n<total_fee>1</total_fee>\n<trade_type><![CDATA[JSAPI]]></trade_type>\n<transaction_id><![CDATA[4200001879202305146563617717]]></transaction_id>\n</xml>"
},
"requestId": "ac1cd3721684059980227162051"
}
[uni-pay-co/ac1cd3721684059980227162051/3ms/ERROR] Config for current app (undefined) was not found, please check your config file or client appId
Error: Config for current app (undefined) was not found, please check your config file or client appId
at A._getPlatformConfig (/tmp/function/@common_modules/uni-id-common/index.js:1:9373)
at A._getConfig (/tmp/function/@common_modules/uni-id-common/index.js:1:10078)
at new T (/tmp/function/@common_modules/uni-id-common/index.js:1:3896)
at A.checkToken (/tmp/function/@common_modules/uni-id-common/index.js:1:7912)
at A.<anonymous> (/tmp/function/@common_modules/uni-id-common/index.js:1:10294)
at i.module.exports (/tmp/function/middleware/auth.js:6:41)
at i._before (/tmp/function/index.obj.js:47:25)
at c (/tmp/function/index.js:1:2716)
at Object.exports.main (/tmp/function/
index.js:1:2819)
at Q (/tmp/function/index.js:1:24007)
请求响应状态: fail

操作步骤:

微信小程序支付

预期结果:

支付成功回调函数正常调用成功

实际结果:

回调函数报错

bug描述:

支付成了,配置的回调函数uni-pay-co 报错了

2023-05-14 18:30 负责人:无 分享
已邀请:
piaoyi_UI

piaoyi_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

Config for current app (undefined) was not found, please check your config file or client appId

1***@163.com

1***@163.com (作者)

老是报错我把uni-pay-co删了然后再上传新的uni-pay-co,实例化路径不一样了,但是还在调用,浪费我服务器资源,没人管嘛

要回复问题请先登录注册