云开发分账添加分账接收方,总是报错参数格式错误?
exports.main = async (event, context) => {
const res = await cloud.cloudPay.profitSharingAddReceiver({
"sub_mch_id": "1612648921",
"sub_appid": "wxd2d16a504f24665e",
"nonce_str":"jiangnanbu223yi223xdhsdak2",
"receiver": {
"type": "PERSONAL_OPENID", // 个人openid
"account": "ok1Nu5EpcW0USpiSlVB2Ww9m4ZW4",
"relation_type": "PARTNER"
}
})
return res
}
// 报错:
errCode: 0
errMsg: "cloudPay.profitSharingAddReceiver:ok"
returnCode: "FAIL"
returnMsg: "参数格式校验错误"