|
@@ -32,10 +32,10 @@ public class EncryptionPersonTest {
|
|
|
private PersonnelService personnelService;
|
|
|
|
|
|
@Test
|
|
|
- public void loginByEncryption() throws Exception {
|
|
|
+ public void test() throws Exception {
|
|
|
EncryptionLoginDTO vo = new EncryptionLoginDTO();
|
|
|
- vo.setUsername("gaochangkui-qy");
|
|
|
- vo.setPassword("Xiaoshi221101*");
|
|
|
+ vo.setUsername("zhangsansan");
|
|
|
+ vo.setPassword("12343545");
|
|
|
vo.setAppKey("4e95e3d926a2a4befa5d913acc0aa9f5");
|
|
|
// vo.setMachineCode("BDACEARQ1241241");
|
|
|
vo.setMachineCode("BFEBFBFF000A0654");
|
|
@@ -49,7 +49,7 @@ public class EncryptionPersonTest {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void functionByEncryption() throws Exception {
|
|
|
+ public void test11() throws Exception {
|
|
|
final long timeMillis = System.currentTimeMillis();
|
|
|
String appSecret = "4e95e3d926a2a4befa5d913acc0aa9f5" + timeMillis / 1000;
|
|
|
String md5Sign = SecureUtil.md5(appSecret);
|
|
@@ -57,7 +57,7 @@ public class EncryptionPersonTest {
|
|
|
functionDTO.setAppKey("4e95e3d926a2a4befa5d913acc0aa9f5");
|
|
|
functionDTO.setCurrentTimeMillis(timeMillis);
|
|
|
functionDTO.setSign(md5Sign);
|
|
|
- functionDTO.setVersion("1");
|
|
|
+ functionDTO.setVersion("1.0.0.1");
|
|
|
final String function = loginService.functionByEncryption(functionDTO);
|
|
|
System.out.println(function);
|
|
|
}
|
|
@@ -92,7 +92,7 @@ public class EncryptionPersonTest {
|
|
|
@Test
|
|
|
public void getPhoneCode() {
|
|
|
SendCodeDTO vo = new SendCodeDTO();
|
|
|
- vo.setPhoneNum("15705220533");
|
|
|
+ vo.setPhoneNum("17625547167");
|
|
|
String s = loginService.getPhoneCode(vo);
|
|
|
System.out.println(s);
|
|
|
}
|
|
@@ -100,8 +100,8 @@ public class EncryptionPersonTest {
|
|
|
@Test
|
|
|
public void loginByPhone() throws Exception {
|
|
|
PhoneLoginDTO vo = new PhoneLoginDTO();
|
|
|
- vo.setPhoneNum("15705220533");
|
|
|
- vo.setPhoneCode("923331");
|
|
|
+ vo.setPhoneNum("17625547167");
|
|
|
+ vo.setPhoneCode("357133");
|
|
|
vo.setAppKey("4e95e3d926a2a4befa5d913acc0aa9f5");
|
|
|
vo.setMachineCode("BFEBFBFF000A0654");
|
|
|
final long timeMillis = System.currentTimeMillis();
|