调用另一个云环境的云函数,下面的代码:
const cloud = require('wx-server-sdk')
const tcb=require("tcb-admin-node")
var admin=tcb.init({
secretId:"AK*****************************gX",
secretKey:"f*****************************NC",
env: 'e******z',
})
cloud.init()
exports.main = async (event, context) => {
let reuslt= await admin.callFunction({
name:"mathAdd",
data:{
}
})
console.log("111",reuslt)
}
显示:
111 {code: "INVALID_ENV", message: "Environment not found"}
请教问题出在哪里?