更新MIS接口字段

This commit is contained in:
free will
2021-11-03 11:37:11 +08:00
parent 221c73034f
commit a01fa624c0
2 changed files with 20 additions and 17 deletions
@@ -16,6 +16,7 @@ public class MISRegisterRequest extends BaseStruct {
public String PrikeyEncrypted;
public String Phone;
public String VerificationCode;
public String Code;
public MISRegisterRequest(String identityIdentifier,
String pubkey, String passwd,
@@ -26,5 +27,6 @@ public class MISRegisterRequest extends BaseStruct {
PrikeyEncrypted = prikeyEncrypted;
Phone = phone;
VerificationCode = verificationCode;
Code = "null";
}
}
+18 -17
View File
@@ -40,7 +40,7 @@ public class TestMisAPI {
bc_keyManager.GenKeyPair();
String pubkey=bc_keyManager.GetPubkey();
String username="xzwtest1";
String username="xzwtest123";
String phone="86"+"18186152440";
// String passwd="Xiaowei199876!";
String passwd="5f46cb23a9ca184f58715278a688e7f6";
@@ -54,26 +54,27 @@ public class TestMisAPI {
}
MIS_API mis_api=new MIS_API();
mis_api.ip="192.168.3.15";
// mis_api.ip="192.168.3.15";
mis_api.ip="121.15.171.89"; // gdcni17
System.out.println(mis_api.ip+mis_api.port+mis_api.sslPort);
// 手机验证码
// NetworkResponse networkResponse=mis_api.getSMSMessage(request);
// try {
// System.out.println("获取验证码应答: "+networkResponse.toJson());
// } catch (IllegalAccessException e) {
// e.printStackTrace();
// }
// System.out.println(networkResponse.Code);
NetworkResponse networkResponse=mis_api.getSMSMessage(request);
try {
System.out.println("获取验证码应答: "+networkResponse.toJson());
} catch (IllegalAccessException e) {
e.printStackTrace();
}
System.out.println(networkResponse.Code);
//// // 注册
// MISRegisterRequest registerRequest=new MISRegisterRequest("/"+username,
// pubkey,passwd,"hello,iamtheprikeyencrypted",
// phone,"640432");
// try {
// System.out.println("register request: "+registerRequest.toJson());
// } catch (IllegalAccessException e) {
// e.printStackTrace();
// }
MISRegisterRequest registerRequest=new MISRegisterRequest("/"+username,
pubkey,passwd,"hello,iamtheprikeyencrypted",
phone,"640432");
try {
System.out.println("register request: "+registerRequest.toJson());
} catch (IllegalAccessException e) {
e.printStackTrace();
}
//
// // 获取注册应答
// NetworkResponse networkResponse3=mis_api.registerMIS(registerRequest);