Commit cb71ee30 by 阮思源

修改下

parent e13e8ced
......@@ -91,8 +91,8 @@ public class GroupTagBizImpl implements GroupTagBiz {
private MessageBiz messageBiz;
@Autowired
private BookGroupClassifyBiz bookGroupClassifyBiz;
@Value("${system.env}")
private String envStr;
@Value("${wechat.group.link.prefix}")
private String wechatLinkPrefix;
/**
* 品牌方扫码进入指定群链接缓存
*/
......@@ -206,20 +206,7 @@ public class GroupTagBizImpl implements GroupTagBiz {
//获取连接
String codeUrl = JedisClusterUtils.hget(BRAND_QRCODE_URL_REDIS, groupQrcodeId.toString());
if (codeUrl == null) {
String ym = "";
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;
String link = wechatLinkPrefix + "/group/info?classify_id=" + classifyId + "&book_group_id=" + bookGroupId + "&group_qrcode_id=" + groupQrcodeId;
codeUrl = QrcodeUtils.create(link);
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