This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
main/java/org/omenhelper/Omen Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >org.omenhelper</groupId >
8
8
<artifactId >OmenChallengeHelper</artifactId >
9
- <version >1.0.3 </version >
9
+ <version >1.0.4 </version >
10
10
11
11
<name >OmenChallengeHelper</name >
12
12
<!-- FIXME change it to the project's website -->
Original file line number Diff line number Diff line change 1
1
package org .omenhelper .Omen .Body ;
2
2
3
- import lombok .Getter ;
4
3
import lombok .Setter ;
5
4
6
- import java .util .HashMap ;
7
5
import java .util .LinkedHashMap ;
8
6
import java .util .Map ;
9
7
@@ -28,6 +26,8 @@ public class BasicBody {
28
26
put ("params" , params );
29
27
}};
30
28
29
+ //===================================================================================
30
+
31
31
public BasicBody (String applicationId , String sessionToken ) {
32
32
params .put ("applicationId" , applicationId );
33
33
params .put ("sessionToken" , sessionToken );
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public Login(String email, String pass) {
41
41
this .pass = pass ;
42
42
}
43
43
44
+ @ Deprecated
44
45
public String doIt (){
45
46
46
47
String localhostUrl = webLogin ();
@@ -58,6 +59,7 @@ public String doIt(){
58
59
log .info ("开始获取挑战SESSION" );
59
60
return genSession ((String ) akMap .get ("access_token" ));
60
61
}
62
+
61
63
public void webPrepare (){
62
64
Map <String , Object > config = new HashMap <String , Object >(){{
63
65
put ("redirection" , 1 );
Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .Assert .assertTrue ;
4
4
5
+ import org .junit .Assert ;
5
6
import org .junit .Test ;
6
7
import org .omenhelper .Omen .VsJSONProgressEvent ;
7
8
@@ -49,13 +50,15 @@ public void testA(){
49
50
50
51
}
51
52
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
+ }
61
64
}
You can’t perform that action at this time.
0 commit comments