Normal view

There are new articles available, click to refresh the page.
Yesterday — 8 January 2025Main stream

=== 实不相瞒,我真的看不起 iot.ctwing.cn 的后端开发 ===

By: FreeWong
8 January 2025 at 17:03
FreeWong:

一个相同的接口的调用返回,你们看看,似乎是想返回什么就返回什么。而且你他妈的还不知道响应的状态码是多少。 这样水平都可以混饭吃,你们焦虑什么呢

product id 与 master api key 不相符的返回

{
  code:2010105
  msg:"设备操作 MasterKey 不合法"
  result:null
}

=========================================== App Secret 长度不正确时的返回 未知

=========================================== App Secret 错误时的返回

{
  error_code:"401"
  error_desc:"Signature not matched: application:xxxxxx \n timestamp:xxxx \n MasterKey:xxxx \n imei:86xxxx \n productId:xxxxxx \n "
}

=========================================== 正确的返回 响应 200

{
    "code":0,
    "msg":"ok",
    "result":{
        "deviceId":"xxxxx",
        "deviceName":"xxxxx",
        "tenantId":"xxxxx",
        "productId":xxxxx,
        "imei":"xxxxxx",
        "imsi":null,
        "firmwareVersion":null,
        "deviceStatus":1,
        "autoObserver":0,
        "createTime":xxxx,
        "createBy":"xxxx",
        "updateTime":xxxx,
        "updateBy":"xxxx",
        "netStatus":2,
        "onlineAt":xxxx,
        "offlineAt":xxxxx
    }
}
❌
❌