|
|
@@ -142,7 +142,7 @@ public class LoginActivity extends Activity implements OnClickListener {
|
|
|
login_yonghu.setText(name);
|
|
|
login_zhangtao.setSelection(login_zhangtao.length());
|
|
|
login_yonghu.setSelection(login_yonghu.length());
|
|
|
- String changeFlag = preferencesjizhu.getString("changeuser", "");
|
|
|
+ String changeFlag = preferencesjizhu.getString("changeuser", "");
|
|
|
if (changeFlag.equals("1")) {
|
|
|
Editor edit = preferencesjizhu.edit();
|
|
|
edit.putString("changeuser", "0");
|
|
|
@@ -483,7 +483,8 @@ public class LoginActivity extends Activity implements OnClickListener {
|
|
|
if (matchresult) {
|
|
|
boolean downloadFlag = CommonUtil.CompareServerVersion(localVersion, serverApp);
|
|
|
if (downloadFlag) {
|
|
|
- if (contentlength == -1) {
|
|
|
+ if (contentlength == -1) {
|
|
|
+// if (contentlength != -1) {
|
|
|
Intent intent = new Intent(LoginActivity.this, HomeActivity.class);
|
|
|
startActivity(intent);
|
|
|
} else {
|
|
|
@@ -745,8 +746,8 @@ public class LoginActivity extends Activity implements OnClickListener {
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("accountCode", accountCode);
|
|
|
params.put("userCode", login_userCode);
|
|
|
- params.put("userPassword", password);
|
|
|
- params.put("sessionKey", sessionkey);
|
|
|
+ params.put("userPassword", password);
|
|
|
+ params.put("sdk", Build.VERSION.SDK_INT);
|
|
|
downloadFileStream("http://" + ServerAddress_ip + ":" + ServerAddress_duankou + Constants.serverAction
|
|
|
+ "/AutoUpgrade", installFilePath, params.toString());
|
|
|
|