From 6e4cf3d4909f8ba5c7e75d0d4e4ca2db06e6ff54 Mon Sep 17 00:00:00 2001
From: Sum1Dream <418471657@qq.com>
Date: Wed, 14 Jun 2023 14:02:27 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9F=A5=E8=AF=A2=E9=97=A8?=
=?UTF-8?q?=E5=BA=97=E5=92=8C=E7=A7=AF=E5=88=86=E8=BF=94=E5=88=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/cweb/controller/TestController.java | 11 ++--
service/pom.xml | 5 ++
.../java/com/hfkj/tts/HWYunSisService.java | 15 +++--
.../java/com/hfkj/unipush/UniPushService.java | 65 +++----------------
4 files changed, 29 insertions(+), 67 deletions(-)
diff --git a/cweb/src/main/java/com/cweb/controller/TestController.java b/cweb/src/main/java/com/cweb/controller/TestController.java
index cc769ab..ac5c6b3 100644
--- a/cweb/src/main/java/com/cweb/controller/TestController.java
+++ b/cweb/src/main/java/com/cweb/controller/TestController.java
@@ -639,7 +639,11 @@ public class TestController {
public ResponseData ttsCustomDemo() {
try {
- return ResponseMsgUtil.success(HWYunSisService.ttsCustomDemo());
+ JSONObject object = new JSONObject();
+ object.put("storeName" , "YCY酒吧");
+ object.put("price" , "374.87");
+
+ return ResponseMsgUtil.success(HWYunSisService.ttsCustomDemo(object));
} catch (Exception e) {
log.error(e.getMessage(), e);
@@ -661,11 +665,8 @@ public class TestController {
object.put("title" , "测试测试");
object.put("body" , "惠支付收款88.8元");
- UniPushService.androidTemplate(object);
-
-
- return ResponseMsgUtil.success("audience");
+ return ResponseMsgUtil.success(UniPushService.pushToSingleByCid(object));
} catch (Exception e) {
log.error(e.getMessage(), e);
diff --git a/service/pom.xml b/service/pom.xml
index 395fc6e..da8a506 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -383,6 +383,11 @@
restful-sdk
1.0.0.13
+
+ cn.jpush.api
+ jpush-client
+ 3.2.17
+