sendCentralCloudRequest 发送给中台的通用网络请求接口

sendCentralCloudRequest ^5.0.0

发送给中台的通用网络请求接口

#请求参数

Prop Type Required Default Description
param Object Y {} 属性: url: method:{ Type: String, Default: POST, Description: 请求的方式:POST(默认) / GET } headers:, Description: 请求header } data:, Description: 请求参数 } bizType:{ // ^6.1.0 Type: String, Default: 0, Description: (业务类型0IoT请求(默认) / 1中国区请求, 注:当bizType为1时,APP将在请求header中增加sukey(中国区登录态)信息 } 请求参数

tip

bizType1时,APP将在请求 header 中增加 sukey (中国区登录态)信息

#接口调用示例

this.$bridge
    .sendCentralCloudRequest()
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })

#返回参数

  • 失败时返回
Prop Type Default Description
errorCode Number N/A 0 服务器错误 -1 请求超时 999999 没有网络
errorMessage String N/A 本地错误信息
result Object N/A 服务器返回结果
posted on 2024-12-21 14:38  AtlasLapetos  阅读(15)  评论(0)    收藏  举报