修改钉钉回调日志输出为log.info
处理application-dev 的yml文件
This commit is contained in:
parent
2f88db00da
commit
dd117937f0
@ -40,7 +40,7 @@ public class CallbackController extends BaseController {
|
|||||||
List<DingCallBackExchangeProcessor> dingCallBackExchangeProcessorList;
|
List<DingCallBackExchangeProcessor> dingCallBackExchangeProcessorList;
|
||||||
@PostMapping("/ding/clock")
|
@PostMapping("/ding/clock")
|
||||||
public Map<String, String> dingDingClock(@RequestBody Map<String, Object> params){
|
public Map<String, String> dingDingClock(@RequestBody Map<String, Object> params){
|
||||||
System.out.println(JSONObject.toJSONString(params));
|
log.info(JSONObject.toJSONString(params));
|
||||||
try {
|
try {
|
||||||
// 1. 从http请求中获取加解密参数
|
// 1. 从http请求中获取加解密参数
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ public class CallbackController extends BaseController {
|
|||||||
String encryptMsg = String.valueOf(params.get("encrypt"));
|
String encryptMsg = String.valueOf(params.get("encrypt"));
|
||||||
String decryptMsg = callbackCrypto.getDecryptMsg(String.valueOf(params.get("msg_signature")), String.valueOf(params.get("timestamp")), String.valueOf(params.get("nonce")), encryptMsg);
|
String decryptMsg = callbackCrypto.getDecryptMsg(String.valueOf(params.get("msg_signature")), String.valueOf(params.get("timestamp")), String.valueOf(params.get("nonce")), encryptMsg);
|
||||||
|
|
||||||
System.out.println("==============>"+decryptMsg);
|
log.info("==============>"+decryptMsg);
|
||||||
// 3. 反序列化回调事件json数据
|
// 3. 反序列化回调事件json数据
|
||||||
JSONObject eventJson = JSON.parseObject(decryptMsg);
|
JSONObject eventJson = JSON.parseObject(decryptMsg);
|
||||||
String eventType = eventJson.getString("EventType");
|
String eventType = eventJson.getString("EventType");
|
||||||
|
|||||||
@ -32,9 +32,9 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://192.168.5.23:3306/dev_evo_cw_new?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://192.168.5.232:3306/evo_cw_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
password: yite
|
password: hbyt123456
|
||||||
#username: root
|
#username: root
|
||||||
#password: yj.chen@001
|
#password: yj.chen@001
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user