Browse Source

一拖二设备业务调整

master
pry 6 months ago
parent
commit
f3fde91d1f
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/src/main/java/com/bonait/bnframework/business/ConfigData.java

+ 4
- 1
app/src/main/java/com/bonait/bnframework/business/ConfigData.java View File

@@ -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();


Loading…
Cancel
Save