|
|
@@ -390,7 +390,10 @@ public class ConfigData { |
|
|
|
ResAPI<OrganizeMode> organize = response.body(); |
|
|
|
if (organize.isSuccess) { |
|
|
|
ConfigName.getInstance().organizeMode = organize.data; |
|
|
|
OkGo.<ResAPI<DeviceInformation>>get(String.format(ConfigName.getInstance().SaasAddress + ConfigName.getInstance().GetDeviceInformation, ConfigName.getInstance().organizeMode.id, ConfigName.getInstance().DeviceAutoKey)).tag(context).headers(new HttpHeaders("TenantId", ConfigName.getInstance().organizeMode.companyId)).execute(new JsonDialogCallback<ResAPI<DeviceInformation>>(context) { |
|
|
|
String saasAdd = ConfigName.getInstance().SaasAddress + ConfigName.getInstance().GetDeviceInformation; |
|
|
|
String id = ConfigName.getInstance().organizeMode.id; |
|
|
|
String autoKey =ConfigName.getInstance().DeviceAutoKey; |
|
|
|
OkGo.<ResAPI<DeviceInformation>>get(String.format(saasAdd, id, autoKey)).tag(context).headers(new HttpHeaders("TenantId", ConfigName.getInstance().organizeMode.companyId)).execute(new JsonDialogCallback<ResAPI<DeviceInformation>>(context) { |
|
|
|
@Override |
|
|
|
public void onSuccess(Response<ResAPI<DeviceInformation>> response) { |
|
|
|
ResAPI<DeviceInformation> deviceInformation = response.body(); |
|
|
|