|
@ -1619,19 +1619,19 @@ public class MainActivity extends AppCompatActivity { |
|
|
String password = editTextPassword.getText().toString().trim(); |
|
|
String password = editTextPassword.getText().toString().trim(); |
|
|
|
|
|
|
|
|
// 在测试环境下,如果用户名和密码都为空,自动填充默认账号 |
|
|
// 在测试环境下,如果用户名和密码都为空,自动填充默认账号 |
|
|
if (isTestEnvironment() && username.isEmpty() && password.isEmpty()) { |
|
|
|
|
|
username = "00167"; |
|
|
|
|
|
password = "123456"; |
|
|
|
|
|
|
|
|
|
|
|
// 更新输入框显示 |
|
|
|
|
|
editTextUsername.setText(username); |
|
|
|
|
|
editTextPassword.setText(password); |
|
|
|
|
|
|
|
|
|
|
|
// 显示提示信息 |
|
|
|
|
|
showToast("测试环境:已自动填充默认账号"); |
|
|
|
|
|
|
|
|
|
|
|
android.util.Log.d("MainActivity", "Test environment: Auto-filled default credentials"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (isTestEnvironment() && username.isEmpty() && password.isEmpty()) { |
|
|
|
|
|
// username = "00167"; |
|
|
|
|
|
// password = "123456"; |
|
|
|
|
|
// |
|
|
|
|
|
// // 更新输入框显示 |
|
|
|
|
|
// editTextUsername.setText(username); |
|
|
|
|
|
// editTextPassword.setText(password); |
|
|
|
|
|
// |
|
|
|
|
|
// // 显示提示信息 |
|
|
|
|
|
// showToast("测试环境:已自动填充默认账号"); |
|
|
|
|
|
// |
|
|
|
|
|
// android.util.Log.d("MainActivity", "Test environment: Auto-filled default credentials"); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
if (validateInput(username, password)) { |
|
|
if (validateInput(username, password)) { |
|
|
performLogin(username, password); |
|
|
performLogin(username, password); |
|
|