|
|
|
@@ -24,6 +24,7 @@ public class WiwideUtil implements SMSExcutor { |
|
|
|
private static final String addTemplateUrl = "https://webapp.wiwide.com/apisms/addtemplate"; |
|
|
|
private static final String smsSendUrl = "https://webapp.wiwide.com/apisms/send"; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public String sendMsg(String secret, String bid, String publickey, String phone, String signature, String msg, String notifyUrl, String verifysms, Integer modelId, String templateParam, String templateCode, String outId) { |
|
|
|
return sendMsg(secret, bid, publickey, phone, signature, msg, notifyUrl, |
|
|
|
@@ -219,6 +220,10 @@ public class WiwideUtil implements SMSExcutor { |
|
|
|
String data = HttpUtil.doPostWiwideNew(url, sign, params); |
|
|
|
return data; |
|
|
|
} |
|
|
|
|
|
|
|
public static String getWiWidePic(String url,String sign, String type, String id) { |
|
|
|
return HttpUtil.doWiwidePicGet(url+"/api/reports/pictures/get_picture?type="+type+"&id="+id,sign); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
Map<String, String> params = new HashMap<>(2); |
|
|
|
@@ -237,16 +242,29 @@ public class WiwideUtil implements SMSExcutor { |
|
|
|
wiWideInfo.setWiwideKey(secretKey); |
|
|
|
String sign = WiwideEntry.encrypt(wiWideInfo); |
|
|
|
|
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
param.put("pageStart",1); |
|
|
|
param.put("pageSize",10); |
|
|
|
param.put("key",0); |
|
|
|
param.put("value",""); |
|
|
|
param.put("placeStatus",0); |
|
|
|
|
|
|
|
|
|
|
|
String s = queryDataNew("http://140.143.33.245" + "/api/place/place", sign, param); |
|
|
|
System.out.println(DataUtil.unicodeToUtf8(s)); |
|
|
|
String s = HttpUtil.doWiwidePicGet("http://140.143.33.245" + "/api/reports/pictures/get_picture?type=pic&id=b3b30445674bb49840e64c2f8b0be347", sign); |
|
|
|
System.out.println(s); |
|
|
|
|
|
|
|
// Map<String, Object> param = new HashMap<>(); |
|
|
|
// param.put("type","pic"); |
|
|
|
// param.put("id","b3b30445674bb49840e64c2f8b0be347"); |
|
|
|
// |
|
|
|
// |
|
|
|
// |
|
|
|
// String s = queryDataNew("http://140.143.33.245" + "/api/reports/pictures/get_picture", sign, param); |
|
|
|
// System.out.println(DataUtil.unicodeToUtf8(s)); |
|
|
|
|
|
|
|
// Map<String, Object> param = new HashMap<>(); |
|
|
|
// param.put("pageStart",1); |
|
|
|
// param.put("pageSize",10); |
|
|
|
// param.put("key",0); |
|
|
|
// param.put("value",""); |
|
|
|
// param.put("placeStatus",0); |
|
|
|
// |
|
|
|
// |
|
|
|
// String s = queryDataNew("http://140.143.33.245" + "/api/place/place", sign, param); |
|
|
|
// System.out.println(DataUtil.unicodeToUtf8(s)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|