|
@@ -4,6 +4,7 @@ import java.util.*;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.sckw.core.exception.SystemException;
|
|
import com.sckw.core.exception.SystemException;
|
|
|
import com.sckw.core.model.constant.Global;
|
|
import com.sckw.core.model.constant.Global;
|
|
|
|
|
+import com.sckw.core.model.enums.ClientTypeEnum;
|
|
|
import com.sckw.core.utils.*;
|
|
import com.sckw.core.utils.*;
|
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
@@ -135,12 +136,15 @@ public class CommonService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- public void sendSystemMessage(List<UserInfo> userInfos, MessageEnum messageEnum, Map<String, Object> map, String msgUrl) {
|
|
|
|
|
|
|
+ public void sendSystemMessage(List<UserInfo> userInfos, MessageEnum messageEnum, Map<String, Object> map, String msgUrl, String appMsgUrl) {
|
|
|
SckwMessage msg = new SckwMessage();
|
|
SckwMessage msg = new SckwMessage();
|
|
|
|
|
+ Map<String, String> msgUrls = new HashMap<>(Global.NUMERICAL_FOUR);
|
|
|
|
|
+ msgUrls.put(ClientTypeEnum.pc.getValue(), msgUrl);
|
|
|
|
|
+ msgUrls.put(ClientTypeEnum.app.getValue(), appMsgUrl);
|
|
|
msg.setRequestId(UUIDUtils.get32UUID())
|
|
msg.setRequestId(UUIDUtils.get32UUID())
|
|
|
.setMessageEnum(messageEnum)
|
|
.setMessageEnum(messageEnum)
|
|
|
.setParams(map)
|
|
.setParams(map)
|
|
|
- .setMsgUrl(msgUrl)
|
|
|
|
|
|
|
+ .setMsgUrls(msgUrls)
|
|
|
.setUserInfos(userInfos)
|
|
.setUserInfos(userInfos)
|
|
|
.setCreateBy(LoginUserHolder.getUserId());
|
|
.setCreateBy(LoginUserHolder.getUserId());
|
|
|
AsyncThreadUtils.submit(new AsyncProcess(msg, streamBridge));
|
|
AsyncThreadUtils.submit(new AsyncProcess(msg, streamBridge));
|