Commit cb71ee30 by 阮思源

修改下

parent e13e8ced
...@@ -91,8 +91,8 @@ public class GroupTagBizImpl implements GroupTagBiz { ...@@ -91,8 +91,8 @@ public class GroupTagBizImpl implements GroupTagBiz {
private MessageBiz messageBiz; private MessageBiz messageBiz;
@Autowired @Autowired
private BookGroupClassifyBiz bookGroupClassifyBiz; private BookGroupClassifyBiz bookGroupClassifyBiz;
@Value("${system.env}") @Value("${wechat.group.link.prefix}")
private String envStr; private String wechatLinkPrefix;
/** /**
* 品牌方扫码进入指定群链接缓存 * 品牌方扫码进入指定群链接缓存
*/ */
...@@ -206,20 +206,7 @@ public class GroupTagBizImpl implements GroupTagBiz { ...@@ -206,20 +206,7 @@ public class GroupTagBizImpl implements GroupTagBiz {
//获取连接 //获取连接
String codeUrl = JedisClusterUtils.hget(BRAND_QRCODE_URL_REDIS, groupQrcodeId.toString()); String codeUrl = JedisClusterUtils.hget(BRAND_QRCODE_URL_REDIS, groupQrcodeId.toString());
if (codeUrl == null) { if (codeUrl == null) {
String ym = ""; String link = wechatLinkPrefix + "/group/info?classify_id=" + classifyId + "&book_group_id=" + bookGroupId + "&group_qrcode_id=" + groupQrcodeId;
if ("dev".equalsIgnoreCase(envStr)) {
ym = "chubanyun.me";
}
if ("test".equalsIgnoreCase(envStr)) {
ym = "raysgo.com";
}
if ("uat".equalsIgnoreCase(envStr)) {
ym = "raysyun.com";
}
if ("pro".equalsIgnoreCase(envStr)) {
ym = "5rs.me";
}
String link = "https://wechat666." + ym + "/group/info?classify_id=" + classifyId + "&book_group_id=" + bookGroupId + "&group_qrcode_id=" + groupQrcodeId;
codeUrl = QrcodeUtils.create(link); codeUrl = QrcodeUtils.create(link);
JedisClusterUtils.hset(BRAND_QRCODE_URL_REDIS, groupQrcodeId.toString(), codeUrl); JedisClusterUtils.hset(BRAND_QRCODE_URL_REDIS, groupQrcodeId.toString(), codeUrl);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment