|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.wxservice_server.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -73,7 +74,13 @@ public class WxApiController {
|
|
|
|
|
|
@PostMapping("/pushMessage")
|
|
|
public void pushMessage(@RequestBody @Validated PushMessageParam param) {
|
|
|
- pushWxMessageService.pushMessage(param);
|
|
|
+ pushWxMessageService.pushMessage2(param);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/pushMessage2")
|
|
|
+ public String pushMessage2(@RequestBody JSONObject param) {
|
|
|
+ boolean result = pushWxMessageService.pushMessage2(param);
|
|
|
+ return result ? "SUCCESS" : "FAIL";
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getWxPayQrcode")
|