Commit f680ff94 authored by ysongq's avatar ysongq

commit

parent 798f62ad
...@@ -340,14 +340,14 @@ public class DateUtils { ...@@ -340,14 +340,14 @@ public class DateUtils {
public static void main(String[] args) { // public static void main(String[] args) {
try { // try {
System.out.println("本周一" + parseDate2String(getThisWeekMonday())); // System.out.println("本周一" + parseDate2String(getThisWeekMonday()));
System.out.println("本月一日" + parseDate2String(getFirstDay4ThisMonth())); // System.out.println("本月一日" + parseDate2String(getFirstDay4ThisMonth()));
} catch (Exception e) { // } catch (Exception e) {
e.printStackTrace(); // e.printStackTrace();
} // }
} // }
//获取一年后时间 //获取一年后时间
public static Date getAfterYear(Date now) { public static Date getAfterYear(Date now) {
......
...@@ -89,9 +89,9 @@ public class NumberUtils { ...@@ -89,9 +89,9 @@ public class NumberUtils {
} }
public static void main(String[] args) { // public static void main(String[] args) {
//
System.out.println(getOrderNumber("00001")); // System.out.println(getOrderNumber("00001"));
System.out.println(getDealNum()); // System.out.println(getDealNum());
} // }
} }
\ No newline at end of file
...@@ -289,15 +289,15 @@ public class RandomUtil { ...@@ -289,15 +289,15 @@ public class RandomUtil {
return builder.toString(); return builder.toString();
} }
public static void main(String[] args) { // public static void main(String[] args) {
//System.out.println(getStringRandom(8)); // //System.out.println(getStringRandom(8));
// System.out.println("获取拼音首字母:"+getAllFirstLetter("大中国南昌中大china")); // // System.out.println("获取拼音首字母:"+getAllFirstLetter("大中国南昌中大china"));
//System.out.println(isChineseWord("大中国南昌中大")); // //System.out.println(isChineseWord("大中国南昌中大"));
//System.out.println(generateOrgCoding("九章数据","INT")); // //System.out.println(generateOrgCoding("九章数据","INT"));
// System.out.println(generateTokenCode("", "")); // // System.out.println(generateTokenCode("", ""));
//System.out.println(addZeroForNum("1", 8)); // //System.out.println(addZeroForNum("1", 8));
//System.out.println("内部授权码:" + generateTokenCode("INT", "NEIJZSJ900hx", ""));//内部授权码 // //System.out.println("内部授权码:" + generateTokenCode("INT", "NEIJZSJ900hx", ""));//内部授权码
//System.out.println("外部授权码:" + generateTokenCode("OUT", "", "199"));//内部授权码 // //System.out.println("外部授权码:" + generateTokenCode("OUT", "", "199"));//内部授权码
System.out.println(generateVersion("v1.99")); // System.out.println(generateVersion("v1.99"));
} // }
} }
...@@ -23,9 +23,9 @@ public class SMSUtils { ...@@ -23,9 +23,9 @@ public class SMSUtils {
private static final String ACCESS_KEY="LTAI4GKPoTkrT6n2fSV7ePEG"; //你的AccessKey ID private static final String ACCESS_KEY="LTAI4GKPoTkrT6n2fSV7ePEG"; //你的AccessKey ID
private static final String SECRET_KEY="k8HcW3TxZzGxAetEpyDInZehip9MAE"; //你的AccessKey Secret private static final String SECRET_KEY="k8HcW3TxZzGxAetEpyDInZehip9MAE"; //你的AccessKey Secret
public static void main(String[] args) throws ClientException { // public static void main(String[] args) throws ClientException {
SMSUtils.sendShortMessage(VALIDATE_CODE,"19979232865","55555555"); // SMSUtils.sendShortMessage(VALIDATE_CODE,"19979232865","55555555");
} // }
/** /**
* *
......
...@@ -33,7 +33,7 @@ public class DataApiUpReq implements Serializable { ...@@ -33,7 +33,7 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty(value = "接口地址") @ApiModelProperty(value = "接口地址")
private String apiUrl; private String apiUrl;
@ApiModelProperty(value = "api请求协议") @ApiModelProperty(value = "api请求协议 HTTP/HTTPS")
private String apiProtocl; private String apiProtocl;
@ApiModelProperty(value = "api返回数据样例") @ApiModelProperty(value = "api返回数据样例")
...@@ -45,9 +45,6 @@ public class DataApiUpReq implements Serializable { ...@@ -45,9 +45,6 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty(value = "加密方式 MD5/RSA") @ApiModelProperty(value = "加密方式 MD5/RSA")
private String encryMode; private String encryMode;
@ApiModelProperty(value = "传输方式 HTTP/HTTPS")
private String transMode;
@ApiModelProperty(value = "功能") @ApiModelProperty(value = "功能")
private String apiFunction; private String apiFunction;
...@@ -69,8 +66,6 @@ public class DataApiUpReq implements Serializable { ...@@ -69,8 +66,6 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty(value = "目标地址",required = false) @ApiModelProperty(value = "目标地址",required = false)
private String targetUrl; private String targetUrl;
@ApiModelProperty(value = "超时时间")
private Date overTime;
/** /**
* goods表 * goods表
*/ */
......
...@@ -249,10 +249,7 @@ public class DataGoodsServiceImpl implements DataGoodsService { ...@@ -249,10 +249,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
if (!StringUtils.isNotEmpty(dataApiUpReq.getJoinType())) { if (!StringUtils.isNotEmpty(dataApiUpReq.getJoinType())) {
return Result.error("接入类型不存在!"); return Result.error("接入类型不存在!");
} }
if (!StringUtils.isNotEmpty(dataApiUpReq.getApiType())) { if (!StringUtils.isNotEmpty(dataApiUpReq.getApiProtocl())) {
return Result.error("api类型不存在!");
}
if (!StringUtils.isNotEmpty(dataApiUpReq.getTransMode())) {
return Result.error("传输方式不能为空!"); return Result.error("传输方式不能为空!");
} }
if (!StringUtils.isNotEmpty(dataApiUpReq.getEncryMode())) { if (!StringUtils.isNotEmpty(dataApiUpReq.getEncryMode())) {
...@@ -271,7 +268,7 @@ public class DataGoodsServiceImpl implements DataGoodsService { ...@@ -271,7 +268,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
apiReq.setOutputType(dataApiUpReq.getReturnType()); apiReq.setOutputType(dataApiUpReq.getReturnType());
// apiReq.setPage(); // TODO // apiReq.setPage(); // TODO
apiReq.setFileId(1L); apiReq.setFileId(1L);
apiReq.setTimeout(dataApiUpReq.getOverTime() + ""); // apiReq.setTimeout(dataApiUpReq.getOverTime() + "");
for (DataGoodsApiParams params : dataApiUpReq.getInboxParam()) { for (DataGoodsApiParams params : dataApiUpReq.getInboxParam()) {
apiReq.setInboxParam(JSON.toJSONString(params)); apiReq.setInboxParam(JSON.toJSONString(params));
} }
...@@ -293,7 +290,6 @@ public class DataGoodsServiceImpl implements DataGoodsService { ...@@ -293,7 +290,6 @@ public class DataGoodsServiceImpl implements DataGoodsService {
// String url= "http://127.0.0.1:8088/api/producer/addDataBankApiInfo"; // String url= "http://127.0.0.1:8088/api/producer/addDataBankApiInfo";
String post = httpsUtils.submitPost(url, JSON.toJSONString(apiReq)); String post = httpsUtils.submitPost(url, JSON.toJSONString(apiReq));
System.out.println(post);
JSONObject result = JSON.parseObject(post); JSONObject result = JSON.parseObject(post);
if (!result.get("code").equals(200) || org.springframework.util.StringUtils.isEmpty(result.get("data"))){ if (!result.get("code").equals(200) || org.springframework.util.StringUtils.isEmpty(result.get("data"))){
return Result.of_error("制作失败!"); return Result.of_error("制作失败!");
......
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