Skip to content

Commit

Permalink
修正与服务器的接口交换内容
Browse files Browse the repository at this point in the history
  • Loading branch information
taowenyin committed Dec 26, 2017
1 parent 7b34cc3 commit d8cb1b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/cn/edu/siso/rlxapf/DeviceListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l)
// 获取类型信息
Map<String, String> params = new HashMap<String, String>();
params.put("mobileid", userBean.getMobileId());
params.put("account", userBean.getAccount());
params.put("account", deviceListCompanyData.get(currCompanyIndex).get(CompanyBean.ACCOUNT));
params.put("sysAdmin", userBean.getSysAdmin());
params.put("province", deviceListProvinceData.get(currProvinceIndex).get(ProvinceBean.PROVINCE));
params.put("city", deviceListCityData.get(currCityIndex).get(CityBean.CITY));
Expand All @@ -363,7 +363,7 @@ public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l)
// 获取GPRS信息
Map<String, String> params = new HashMap<String, String>();
params.put("mobileid", userBean.getMobileId());
params.put("account", userBean.getAccount());
params.put("account", deviceListCompanyData.get(currCompanyIndex).get(CompanyBean.ACCOUNT));
params.put("sysAdmin", userBean.getSysAdmin());
params.put("province", deviceListProvinceData.get(currProvinceIndex).get(ProvinceBean.PROVINCE));
params.put("city", deviceListCityData.get(currCityIndex).get(CityBean.CITY));
Expand Down
7 changes: 1 addition & 6 deletions app/src/main/java/cn/edu/siso/rlxapf/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ public void handleMessage(Message msg) {
editor.putString(UserBean.CONTACT_KEY, userData.getContact());
editor.putString(UserBean.PHONE_KEY, userData.getPhone());
editor.putString(UserBean.MOBILE_ID_KEY, userData.getMobileId());
if (userData.getSysAdmin() != null) { // 判断时候是管理员
editor.putString(UserBean.SYS_ADMIN_KEY, userData.getSysAdmin());
} else {
editor.putString(UserBean.SYS_ADMIN_KEY, "1sz");
userData.setSysAdmin("1");
}
editor.putString(UserBean.SYS_ADMIN_KEY, userData.getSysAdmin());

editor.apply();

Expand Down

0 comments on commit d8cb1b5

Please sign in to comment.