|
|
|
|
@ -190,10 +190,10 @@ public class LoginActivity extends BaseActivity {
|
|
|
|
|
// etUse.setText("161619");
|
|
|
|
|
// etPwd.setText("lgy12345");
|
|
|
|
|
|
|
|
|
|
etUse.setText("161619");
|
|
|
|
|
etPwd.setText("161619");
|
|
|
|
|
// etUse.setText("161619");
|
|
|
|
|
// etPwd.setText("161619");
|
|
|
|
|
|
|
|
|
|
//使用完一定记得关闭电源
|
|
|
|
|
//使用完一定记得关闭 电源
|
|
|
|
|
mt.RFIDclose();
|
|
|
|
|
mt.IRTclose();
|
|
|
|
|
mt.VIBclose();
|
|
|
|
|
@ -353,16 +353,15 @@ public class LoginActivity extends BaseActivity {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSucceed(int what, Response<String> response) throws ParseException {
|
|
|
|
|
String json = response.get();
|
|
|
|
|
showLog("-----login-----");
|
|
|
|
|
showLog(json);
|
|
|
|
|
// showLog("-----login-----");
|
|
|
|
|
// showLog(json);
|
|
|
|
|
|
|
|
|
|
String jsonDecode = RSAUtils.decryptBASE64StrClient(json);
|
|
|
|
|
if (TextUtils.isEmpty(jsonDecode)) {
|
|
|
|
|
showToast(UiUtlis.getString(context, R.string.data_error));
|
|
|
|
|
} else {
|
|
|
|
|
UserInfo userInfo = GsonUtils.GsonToBean(jsonDecode, UserInfo.class);
|
|
|
|
|
showLog(new Gson().toJson(userInfo));
|
|
|
|
|
showLog(jsonDecode);
|
|
|
|
|
//showLog(jsonDecode);
|
|
|
|
|
|
|
|
|
|
if (userInfo != null) {
|
|
|
|
|
UserInfo.User user = userInfo.getRows().get(0);
|
|
|
|
|
@ -459,9 +458,9 @@ public class LoginActivity extends BaseActivity {
|
|
|
|
|
info.setRows(list);
|
|
|
|
|
String json = GsonUtils.GsonString(info);
|
|
|
|
|
String jsonEncrypt = RSAUtils.encryptBASE64Str(json);
|
|
|
|
|
showLog(json);
|
|
|
|
|
showLog(jsonEncrypt);
|
|
|
|
|
showLog(RSAUtils.decryptBASE64Str(jsonEncrypt));
|
|
|
|
|
// showLog(json);
|
|
|
|
|
// showLog(jsonEncrypt);
|
|
|
|
|
// showLog(RSAUtils.decryptBASE64Str(jsonEncrypt));
|
|
|
|
|
return jsonEncrypt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|