Pārlūkot izejas kodu

项目类型

tags/24080901
PoffyZhang pirms 1 gada
vecāks
revīzija
40c448aee7
3 mainītis faili ar 11 papildinājumiem un 4 dzēšanām
  1. +1
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java
  2. +0
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java
  3. +10
    -0
      pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest2.java

+ 1
- 2
pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java Parādīt failu

@@ -143,7 +143,6 @@ public class DingInfoPullController {
long timestamp = System.currentTimeMillis();
String appSecret = "496f0f2a19994f76b4fd9dae087366c7";
String appKey = "A331101453557202109017383";
String dataName = "大数据管理局";
String method = "POST";
String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,method);
String sign = CryptUtils.MD5Encode(appKey + secret + timestamp);
@@ -160,7 +159,7 @@ public class DingInfoPullController {
String url = "https://interface.zjzwfw.gov.cn/gateway/api/proxy/001003001029/" +
"dataSharing/5crv7i4727abLCv0.htm?requestTime=" + timestamp +
"&sign=" + sign + "&appKey=" + appKey +
"&capCode=abc&appId=abc&capTime=" + timestamp +
"&capCode=" + capCode + "&capTime=" + timestamp +
"&appId=" + appId + "&updateTime=" + updateTime;
log.info("url :{}",url);
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class);


+ 0
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java Parādīt failu

@@ -38,11 +38,9 @@ public class Project implements Serializable {
private String area;

@ApiModelProperty("项目阶段")
@Compare("项目阶段")
private Integer stage;

@ApiModelProperty("项目状态")
@Compare("项目状态")
private Integer status;

@ApiModelProperty("项目名称")


+ 10
- 0
pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest2.java Parādīt failu

@@ -67,4 +67,14 @@ public class IrsTest2 {
System.out.println(sign1);
System.out.println(sign2);
}

@Test
public void test4(){
long timestamp = 1690354109541L;

long now = System.currentTimeMillis();

System.out.println( (timestamp - now)/1000 + "s");

}
}

Notiek ielāde…
Atcelt
Saglabāt