接口地址:https://developers.weixin.qq.com/doc/oplatform/service_market/buyer_guideline/API/invokeService.html
想获取这个
地址:https://fuwu.weixin.qq.com/service/detail/0008e2351088004e295aa03f95bc15
这是我传入的参数,使用的egg框架
let params = {
service: "wxcae50ba710ca29d3",
api: "jokebot",
data: {
mode: "2", // 返回普通笑话
},
// client_msg_id: `id123`,
client_msg_id : `id${ Date.now() }`,
// client_msg_id: `id123`,
async: true // 必填
}
const res = await ctx.curl(invokeServiceUrl,{
method: 'POST',
contentType: 'json',
data: params,
dataType: 'json',
})
返回结果
data: {
errcode: 9301013,
errmsg: 'api type not match request id:[MLyfadvRZhavznURagq01WZbUC53XbseLOM8x-hsLqT2OB97MG6s7_b5psvHprJZP8E] rid = 613d9a01-272ec45a-666601c6 rid: 613d9a01-272ec45a-666601c6'
}
是我什么参数传的不对吗。client_msg_id(随机字符串id)这个参数是随便填写吗
请问解决了吗?是什么问题呢