소스 검색

im推送地址修改

三七 6 일 전
부모
커밋
96e46d5200

+ 6 - 2
fs-service/src/main/java/com/fs/gtPush/service/impl/uniPush2ServiceImpl.java

@@ -19,6 +19,7 @@ import com.fs.gtPush.utils.PushUtils;
 import com.fs.his.domain.FsUser;
 import com.fs.his.service.IFsUserService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 import java.util.HashMap;
@@ -28,7 +29,10 @@ import java.util.Map;
 public class uniPush2ServiceImpl implements uniPush2Service {
     @Autowired
     private OpenIMService openIMService;
-    private static final String url = "https://fc-mp-de6e03a9-c1a3-439b-9eec-d0dc3c565e4e.next.bspapp.com/push";
+//    private static final String url = "https://fc-mp-de6e03a9-c1a3-439b-9eec-d0dc3c565e4e.next.bspapp.com/push";
+
+    @Value("${openIM.pushUrl}")
+    private String openIMpushUrl;
 
     @Autowired
     private IFsUserService userService;
@@ -38,7 +42,7 @@ public class uniPush2ServiceImpl implements uniPush2Service {
 
     @Override
     public PushResult pushMessage(PushReqBean push) {
-        String result = HttpUtil.post(url, push.toString());
+        String result = HttpUtil.post(openIMpushUrl, push.toString());
         PushResult pushResult = JSONUtil.toBean(result, PushResult.class);
         return pushResult;
     }

+ 1 - 0
fs-service/src/main/resources/application-druid-sxjz.yml

@@ -165,6 +165,7 @@ openIM:
     secret: openIM123
     userID: imAdmin
     url: https://web.im.xianhthj.cn/api
+    pushUrl: https://fc-mp-d0421385-3496-42e7-b67f-59161a36a0e4.next.bspapp.com/push
 #是否使用新im
 im:
     type: OPENIM