Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 202d073

Browse files
committed
ver: 1.0.4。
1 parent 171cd64 commit 202d073

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.omenhelper</groupId>
88
<artifactId>OmenChallengeHelper</artifactId>
9-
<version>1.0.3</version>
9+
<version>1.0.4</version>
1010

1111
<name>OmenChallengeHelper</name>
1212
<!-- FIXME change it to the project's website -->

src/main/java/org/omenhelper/Omen/Body/BasicBody.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package org.omenhelper.Omen.Body;
22

3-
import lombok.Getter;
43
import lombok.Setter;
54

6-
import java.util.HashMap;
75
import java.util.LinkedHashMap;
86
import java.util.Map;
97

@@ -28,6 +26,8 @@ public class BasicBody {
2826
put("params", params);
2927
}};
3028

29+
//===================================================================================
30+
3131
public BasicBody(String applicationId, String sessionToken) {
3232
params.put("applicationId", applicationId);
3333
params.put("sessionToken", sessionToken);

src/main/java/org/omenhelper/Omen/Login.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public Login(String email, String pass) {
4141
this.pass = pass;
4242
}
4343

44+
@Deprecated
4445
public String doIt(){
4546

4647
String localhostUrl = webLogin();
@@ -58,6 +59,7 @@ public String doIt(){
5859
log.info("开始获取挑战SESSION");
5960
return genSession((String) akMap.get("access_token"));
6061
}
62+
6163
public void webPrepare(){
6264
Map<String, Object> config = new HashMap<String, Object>(){{
6365
put("redirection", 1);

src/test/java/org/omenhelper/AppTest.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.Assert.assertTrue;
44

5+
import org.junit.Assert;
56
import org.junit.Test;
67
import org.omenhelper.Omen.VsJSONProgressEvent;
78

@@ -49,13 +50,15 @@ public void testA(){
4950

5051
}
5152

52-
// @Test
53-
// public void signature() throws Exception {
54-
// System.out.println(new VsJSONProgressEvent(
55-
// "PLAY:LEAGUE_OF_LEGENDS",
56-
// "2021-05-27T04:10:07.769485Z",
57-
// "2021-05-27T04:10:10.430310Z",
58-
// 1
59-
// ).GetSignature("6589915c-6aa7-4f1b-9ef5-32fa2220c844",""));
60-
// }
53+
@Test
54+
public void testSignature() throws Exception {
55+
// rDoHn3RAHsjk0aaRc7IrZ72XH/Q6pi6ojuBcXUnI3e8=
56+
String sign = new VsJSONProgressEvent(
57+
"Launch Game From GameLauncher",
58+
"2021-06-08T02:35:45.086000Z",
59+
"2021-06-08T03:24:45.087000Z",
60+
1
61+
).GetSignature("6589915c-6aa7-4f1b-9ef5-32fa2220c844","49c21277-19a3-402a-9c65-5e37bbfc7e26");
62+
Assert.assertEquals("rDoHn3RAHsjk0aaRc7IrZ72XH/Q6pi6ojuBcXUnI3e8=", sign);
63+
}
6164
}

0 commit comments

Comments
 (0)