2***@qq.com
2***@qq.com
  • 发布:2025-04-25 16:13
  • 更新:2025-04-25 16:13
  • 阅读:77

为什么uniCloud.httpClient.request请求响应成功,但console.log无法打印出返回数据

分类:HBuilderX

const response = await uniCloud.httpClient.request('https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens', {
method: 'POST',
data: {
auth: {
identity: {
methods: ['password'],
password: {
user: {
domain: { name: config.HWDOMAIN },
name: config.HW_USER,
password: config.HWPASSWORD
}
}
},
scope: { domain: { name: config.HWDOMAIN } }
}
},
contentType: 'json',
dataType: 'json'
});
console.log(response);
上面是云函数代码

2025-04-25 16:13 负责人:无 分享
已邀请:

要回复问题请先登录注册