|
|
@@ -44,7 +44,9 @@ public class CochainService {
|
|
|
}
|
|
|
|
|
|
public String getKey(String taskId) {
|
|
|
+
|
|
|
Map<String, String> dictMap = dictDetailService.getValueByName("cochain");
|
|
|
+ log.info("调用字典获得区块链的值:"+ dictMap);
|
|
|
PRODUCE = dictMap.get("produce");
|
|
|
APP_SECRET = dictMap.get("app_secret");
|
|
|
APP_ID = dictMap.get("app_id");
|
|
|
@@ -62,7 +64,9 @@ public class CochainService {
|
|
|
String raw = JSON.toJSONString(dict);
|
|
|
HttpRequest request = HttpRequest.post(PRODUCE);
|
|
|
request.header("Content-Type", "application/json; charset=utf-8");
|
|
|
+ log.info("得到区块链的key请求参数:"+ dictMap);
|
|
|
String produce = request.body(raw).execute().body();
|
|
|
+ log.info("得到区块链的返回结果值:"+ dictMap);
|
|
|
return produce;
|
|
|
|
|
|
}
|