فهرست منبع

修改接口返回数据格式

tuonina 5 سال پیش
والد
کامیت
8b17000c68
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tuon-qywx/src/main/kotlin/cn/tonyandmoney/tuon/qywx/controller/QywxController.kt

+ 2 - 2
tuon-qywx/src/main/kotlin/cn/tonyandmoney/tuon/qywx/controller/QywxController.kt

@@ -70,9 +70,9 @@ class QywxController {
     }
 
     /**
-     * 接收消息
+     * 接收消息,返回的数据类型./
      */
-    @PostMapping("/config/message")
+    @PostMapping("/config/message", produces = ["application/xml;charset=UTF-8"])
     fun configUserMessage(@RequestParam("msg_signature") signature: String,
                           @RequestParam("timestamp") timestamp: String,
                           @RequestParam("nonce") nonce: String,