Commit 1426ee1a authored by 钱雯君's avatar 钱雯君

add

parent b32a9224
......@@ -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();
......
......@@ -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?";
......
......@@ -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
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