|
|
@@ -711,7 +711,7 @@ public class ViewUtil {
|
|
|
*/
|
|
|
private static void showDialogCompany(String json, String phone, String password) {
|
|
|
List<LoginEntity> logMsg = JSON.parseArray(json, LoginEntity.class);
|
|
|
- erpEntities = new ArrayList<LoginEntity>();
|
|
|
+ erpEntities = new ArrayList<>();
|
|
|
LoginEntity logB2b = null;
|
|
|
if (logMsg != null && !logMsg.isEmpty()) {
|
|
|
for (int i = 0; i < logMsg.size(); i++) {
|
|
|
@@ -756,7 +756,7 @@ public class ViewUtil {
|
|
|
CommonUtil.setSharedPreferences(MyApplication.getInstance().getApplicationContext(), "spaceId", String.valueOf(sModel.get(0).getId()));
|
|
|
CommonUtil.setSharedPreferences(MyApplication.getInstance().getApplicationContext(), "companyName", String.valueOf(sModel.get(0).getName()));
|
|
|
CommonUtil.setSharedPreferences(MyApplication.getInstance().getApplicationContext(), "companyEnUu", String.valueOf(sModel.get(0).getEnuu()));
|
|
|
- LoginB2BTask(phone, password, sModel.get(0).getId());//登录B2B
|
|
|
+ LoginB2BTask(phone, password, sModel.get(0).getIn\d());//登录B2B
|
|
|
}
|
|
|
}else{
|
|
|
if (ct!=null) {
|