Selaa lähdekoodia

官方的调用接口

三七 1 päivä sitten
vanhempi
commit
a00f53ef26

+ 21 - 2
fs-qw-task/src/main/java/com/fs/app/controller/CommonController.java

@@ -90,8 +90,11 @@ public class CommonController {
     private IFsUserCourseCountService userCourseCountService;
 
 
-    @GetMapping("/sopguanfan")
-    public R sop(String dateTime) throws Exception {
+    /**
+    * 发官方通连
+    */
+    @GetMapping("/sopguanfanone")
+    public R sopguanfanone(String dateTime) throws Exception {
 
         LocalDateTime localDateTime = DateUtil.parseLocalDateTime(dateTime);
 
@@ -107,6 +110,22 @@ public class CommonController {
         return R.ok();
     }
 
+    /**
+    * 发一对一
+    */
+    @GetMapping("/sopguanfantwo")
+    public R sopguanfantwo(String dateTime) throws Exception {
+
+        LocalDateTime localDateTime = DateUtil.parseLocalDateTime(dateTime);
+
+
+        LocalDate localDate = localDateTime.toLocalDate();
+        String date = localDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
+
+        qwSopLogsService.createCorpMassSending(date);
+        return R.ok();
+    }
+
     @GetMapping("/testSop")
     public R testSop() throws Exception {