|
|
@@ -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;
|
|
|
}
|