返回结果
{"errCode":40004,"errMsg":"openapi.security.mediaCheckAsync:fail invalid media type rid: 631f682e-3da58759-38984cbd"}
wx.cloud.callFunction({
name: "checkmedia",
data: {
scene: 3,
mediaType: 2,
mediaUrl: "https://ts1.cn.mm.bing.net/th/id/R-C.7ba8731f7503355f4f69f627456fda7f?rik=VDPkIsqeBvcU3g&riu=http%3a%2f%2fepaper.hljnews.cn%2fhljrb%2f20200905%2fEA4F6253223F05A43F973CD39EEB7013.jpg&ehk=VrBvAG6iGIfcRoYCgUMtWQL5zfy2rlttw3BJqDqHazo%3d&risl=&pid=ImgRaw&r=0.jpg",
},
success(res){
console.log("检查通过",res)
你好,核实报错40004的原因,是由于请求参数media_type=0导致,media_type只能为1或2,请自行确认调用方式
1、字面原因。非法媒体类型