| | |
| | | Map<String, Object> map = paramsInit(paramsMap);
|
| | | JsonObject jsonResult = null;
|
| | | if (CONST.isHdlServer()) {
|
| | | jsonResult = doPost(CONST.HOST + "/home-wisdom/imou/openapi/" + method, map, timeOut);
|
| | | if(method.equals("bindDevice")){
|
| | | jsonResult = doPost(CONST.HOST + "/home-wisdom/app/device/independentRegister", map, timeOut);
|
| | | }else {
|
| | | jsonResult = doPost(CONST.HOST + "/home-wisdom/imou/openapi/" + method, map, timeOut);
|
| | | }
|
| | | } else {
|
| | | jsonResult = doPost(CONST.HOST + "/openapi/" + method, map, timeOut);
|
| | | if (jsonResult == null) {
|