Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
1426ee1a
Commit
1426ee1a
authored
Nov 06, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
b32a9224
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
HbaseService.java
src/test/java/utils/HbaseService.java
+6
-4
Md5SignGen.java
src/test/java/utils/Md5SignGen.java
+1
-1
TypeChangeUtil.java
src/test/java/utils/TypeChangeUtil.java
+22
-0
No files found.
src/test/java/utils/HbaseService.java
View file @
1426ee1a
...
...
@@ -37,11 +37,12 @@ public class HbaseService {
public
Response
getHBASEKey
(
String
key
)
{
String
url
=
activtyHost
+
"/activity/hb/get"
;
// String url = activtyHost + "/activity/hb/get";
String
url
=
activtyHost
+
"/aaw/hb/get"
;
Map
<
String
,
Object
>
parm
=
new
HashMap
<>();
parm
.
put
(
"key"
,
key
);
parm
.
put
(
"code"
,
"DuiBaHbase"
);
//
parm.put("code","DuiBaHbase");
Response
response
=
given
().
cookies
(
authorization
.
dafuwengLogin
(
4309
)).
params
(
parm
).
get
(
url
);
// response.prettyPrint();
...
...
@@ -64,11 +65,12 @@ public class HbaseService {
public
void
deleteHBASEKey
(
String
key
)
{
String
url
=
activtyHost
+
"/activity/hb/delete"
;
// String url = activtyHost + "/activity/hb/delete";
String
url
=
activtyHost
+
"/aaw/hb/delete"
;
Map
<
String
,
Object
>
parm
=
new
HashMap
<>();
parm
.
put
(
"key"
,
key
);
parm
.
put
(
"code"
,
"DuiBaHbase"
);
//
parm.put("code","DuiBaHbase");
Response
response
=
given
().
cookies
(
authorization
.
dafuwengLogin
(
4309
)).
params
(
parm
).
get
(
url
);
// response.prettyPrint();
...
...
src/test/java/utils/Md5SignGen.java
View file @
1426ee1a
...
...
@@ -26,7 +26,7 @@ public class Md5SignGen {
public
static
void
genSignUrl
(){
Random
rand
=
new
Random
();
int
randNum
=
rand
.
nextInt
(
100000
);
CreditTool
tool
=
new
CreditTool
(
"jlg88lyxz7siqtmr"
,
"
CjexurxQmvyYXt94K9Dqg5292dKMiFUWo22hEkKmu
"
);
CreditTool
tool
=
new
CreditTool
(
"jlg88lyxz7siqtmr"
,
"
1x0eap95f4xfi77uaptrnwh9ewzvlm
"
);
// String url="https://home.m.duiba.com.cn/autoLogin/autologin?";
// String url="http://activity-pre.m.duiba.com.cn/aaw/api/notify?";
String
url
=
"http://activity.m.duibatest.com.cn/aaw/api/notify?"
;
...
...
src/test/java/utils/TypeChangeUtil.java
View file @
1426ee1a
...
...
@@ -7,12 +7,15 @@
*/
package
utils
;
import
cn.com.duiba.credits.sdk.CreditTool
;
import
java.beans.BeanInfo
;
import
java.beans.Introspector
;
import
java.beans.PropertyDescriptor
;
import
java.lang.reflect.Method
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.UUID
;
/**
* 〈〉
...
...
@@ -47,4 +50,23 @@ public class TypeChangeUtil {
}
return
para
;
}
public
static
void
main
(
String
[]
args
)
{
CreditTool
tool
=
new
CreditTool
(
"jlg88lyxz7siqtmr"
,
"1x0eap95f4xfi77uaptrnwh9ewzvlm"
);
String
url
=
"http://activity.m.duibatest.com.cn/autoLogin/autologin?"
;
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"uid"
,
"8"
);
//中文
params
.
put
(
"times"
,
"1"
);
params
.
put
(
"validType"
,
"0"
);
params
.
put
(
"bizid"
,
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
));
//params.put("credits","0");
params
.
put
(
"redirect"
,
"http://activity.m.duibatest.com.cn/hdtool/index?id=20719"
);
params
.
put
(
"actid"
,
"20719"
);
params
.
put
(
"addType"
,
"0"
);
params
.
put
(
"timestamp"
,
System
.
currentTimeMillis
()+
""
);
String
autologinUrl
=
tool
.
buildUrlWithSign
(
url
,
params
);
// String result = HttpUtil.sendGet(autologinUrl);
System
.
out
.
println
(
autologinUrl
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment