async function openTravelApplication(data) { //打开车辆行程列表
return cloud.openapi.urlscheme.generate({
jumpWxa: {
path: `/packageTravelSafety/pages/list/list`,
query: `key=${data.key}` // 传递的参数
},
// 如果想不过期则置为 false,并可以存到数据库
isExpire: true,
// 一分钟有效期
expireTime: parseInt(Date.now() / 1000 + 60),
})
}
exports.main = async (event, context) => {
return openTravelApplication(event)
return 'action not found'
}
最终返回的结果是 errMsg: urlscheme.generate:fail env status is isolated
欠费了?