security.msgSecCheck云调用无法成功?
// 云函数入口文件 const cloud = require( 'wx-server-sdk' ) cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) // 云函数入口函数 exports.main = async(event, context) => { try { var result = await cloud.openapi.security.msgSecCheck({ content: event.content }) console.log(result) return result } catch (err) { console.log(err) } } |
测试了一下security.msgSecCheck接口,云调用无法成功,一直报错(无论是本地调试还是部署后小程序中调用):