openapi.operation.realtimelogSearch:fail 404 not found, 请检查调用方法是否有误[get|post] rid: 6358a2b3-74300a98-4398e76c
const cloud = require('wx-server-sdk')
const moment = require('moment')
require('moment/locale/zh-cn')
moment.locale('zh-cn')
cloud.init()
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext();
console.log(wxContext)
try {
let now_date = moment().format('YYYYMMDD');
let begin = moment().unix()
let end = moment().unix()
console.log('日期', now_date, "begin", begin, "end", end);
const result = await cloud.openapi.operation.realtimelogSearch({
"date": now_date,
"begintime": begin,
"endtime": end,
})
console.log(result);
return result
} catch (err) {
console.log(111, err)
return err
}
}