记得上下班打卡 | git大法好,push需谨慎

Commit c63554cc authored by 张国柄's avatar 张国柄

+.test;

parent 9c5a2262
import com.liquidnet.commons.lang.util.DESUtils;
import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.IdentityUtils; import com.liquidnet.commons.lang.util.IdentityUtils;
import lombok.SneakyThrows;
import org.junit.Test; import org.junit.Test;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Scanner; import java.util.Scanner;
public class TestAdam { public class TestAdam {
...@@ -70,6 +75,15 @@ public class TestAdam { ...@@ -70,6 +75,15 @@ public class TestAdam {
System.out.println(IdentityUtils.aliThird("徐佳颖", "429004200001202586")); System.out.println(IdentityUtils.aliThird("徐佳颖", "429004200001202586"));
} }
@SneakyThrows
@Test
public void testLoginBySilentMobile() {
String mobile = "15811009011";
String otp = DESUtils.DES().encrypt(mobile + LocalDateTime.now().toEpochSecond(ZoneOffset.UTC));
String post = HttpUtil.post("http://testadam.zhengzai.tv/adam/login/silent_mobile?mobile=15811009011&otp=" + otp, null);
System.out.println(post);
}
@Test @Test
public void testTmp() { public void testTmp() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment