From 998b6bd2a1dc25ec8350f5a691c3cd44a23d6d14 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期五, 26 三月 2021 01:35:13 +0800
Subject: [PATCH] 全网搜(芒果兼容)

---
 src/main/java/com/yeshi/buwan/controller/api/PushController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/api/PushController.java b/src/main/java/com/yeshi/buwan/controller/api/PushController.java
index 096c186..4281859 100644
--- a/src/main/java/com/yeshi/buwan/controller/api/PushController.java
+++ b/src/main/java/com/yeshi/buwan/controller/api/PushController.java
@@ -47,7 +47,7 @@
 
 
         PushDeviceToken token = new PushDeviceToken();
-        token.setType(type);
+        token.setType(PushDeviceToken.PushPlatform.valueOf(type));
         token.setDetailSystemId(acceptData.getDetailSystem().getId());
         token.setUtdId(acceptData.getUtdId());
         token.setToken(regId);

--
Gitblit v1.8.0