Przeglądaj źródła

fix youtube推送人修改

chenbiao 3 lat temu
rodzic
commit
218bf8e512

+ 7 - 3
netflix-web/src/main/java/com/cyksj/web/controller/manage/AdminController.java

@@ -60,7 +60,11 @@ public class AdminController {
 
     private final PhoneCodeMapper phoneCodeMapper;
 
-    private static final List<String> SEND_LIST = List.of("o_i5g6V5z5uDpx_SBhJ4ePek8g8k","o_i5g6X99wu2OmC4DcQKXKNmJexA");
+    private static final List<String> SEND_LIST = List.of("oXxcY6HY-Ts-vRIc003ienh16gb0",
+            "oXxcY6AsLXAuVusm2HtVtrgD7mKA",
+            "oXxcY6AuRTHav3Rt7VblOnFBWQ00",
+            "oXxcY6InnkO78zu6THeqSOeKDQFg",
+            "oXxcY6GZrptgTr-U0spJxSOBQ_xc");
 
     @PostMapping(value = "/login")
     public Result<String> login(@RequestBody Admin adminRequest) throws Exception {
@@ -227,7 +231,7 @@ public class AdminController {
     }
 
     @GetMapping("/send/template")
-    public Result<String> sendTemplate(String title, String channel) throws Exception {
+    public Result<String> sendTemplate(String title, String channel, String url) throws Exception {
         for (String openId : SEND_LIST) {
             WxMpTemplateMessage templateMessage = new WxMpTemplateMessage()
                     .setToUser(openId)
@@ -239,7 +243,7 @@ public class AdminController {
             data.setKeyword2(new WxMpTemplateData(channel));
             data.setKeyword3(new WxMpTemplateData(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")));
             data.setKeyword4(new WxMpTemplateData("默认"));
-            data.setRemark(new WxMpTemplateData("您订阅的频道有新内容发布"));
+            data.setRemark(new WxMpTemplateData(url));
             log.info("发送video模板消息至客服:{}","磨牙怪");
             weChatService.sendTemplateMessage(weChatService.getAccessToken(), Jsons.toJson(templateMessage));
         }