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: "参数格式校验错误"
receiver格式为String,如使用openid,account字段需要传PERSONAL_SUB_OPENID