const cloud = require('wx-server-sdk')
cloud.init()
const Core = require('@alicloud/pop-core');
var client = new Core({
accessKeyId: '',
accessKeySecret: '',
endpoint: 'https://dyplsapi.aliyuncs.com',
apiVersion: '2017-05-25'
});
var RegionId = "cn-hangzhou";
var PoolKey = "";
exports.main = async (event, context) => {
var bindParams = {
"RegionId": RegionId,
"PhoneNoA": event.PhoneNoA,
"Expiration": "2021-01-22 15:09",
"PoolKey": PoolKey,
"PhoneNoB": event.PhoneNoB,
"IsRecordingEnabled":false
}
var res = await client.request('BindAxb', bindParams, {method: 'POST'}).then((result) => {
console.log(result);
return JSON.stringify(result);
}, (ex) => {
console.log(ex);
})
return res;
}
我也遇到了,求大神告知怎么搞啊
我也遇到了这个问题 同问
楼主解决了吗?我也遇到了