|
@@ -1,5 +1,6 @@
|
|
package com.zanxiang.game.module.manage.service.impl;
|
|
package com.zanxiang.game.module.manage.service.impl;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
@@ -199,10 +200,19 @@ public class CpSendMsgLogServiceImpl extends ServiceImpl<CpSendMsgLogMapper, CpS
|
|
param.put("serverid", serverId);
|
|
param.put("serverid", serverId);
|
|
param.put("roleIds", roleIdList);
|
|
param.put("roleIds", roleIdList);
|
|
|
|
|
|
- List<String> imgList = Collections.singletonList("https://manage.84game.cn/image/WechatIMG56.jpeg");
|
|
|
|
Map<String, Object> msgContent = new HashMap<>(2);
|
|
Map<String, Object> msgContent = new HashMap<>(2);
|
|
msgContent.put("text", text);
|
|
msgContent.put("text", text);
|
|
- msgContent.put("imgs", JsonUtil.toString(imgList));
|
|
+
|
|
|
|
+ if (Objects.equals(gameSupper.getId(), 2L)) {
|
|
|
|
+ msgContent.put("imgs", JsonUtil.toString(Collections.singletonList("https://manage.84game.cn/image/WechatIMG56.jpeg")));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (Strings.isNotBlank(gameSupper.getCpSendMsgConfig())) {
|
|
|
|
+ JSONObject msgConfig = JSONObject.parse(gameSupper.getCpSendMsgConfig());
|
|
|
|
+ msgContent.put("qrCode", msgConfig.getString("qrCode"));
|
|
|
|
+ msgContent.put("superLink", msgConfig.getString("superLink"));
|
|
|
|
+ }
|
|
|
|
+
|
|
param.put("msgContent", msgContent);
|
|
param.put("msgContent", msgContent);
|
|
|
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
HttpHeaders headers = new HttpHeaders();
|