|
@@ -5,6 +5,7 @@ import com.qs.mp.channel.domain.Channel;
|
|
|
import com.qs.mp.channel.service.IChannelService;
|
|
|
import com.qs.mp.common.core.domain.AjaxResult;
|
|
|
import com.qs.mp.common.core.redis.RedisCache;
|
|
|
+import com.qs.mp.common.enums.AppSourceEnum;
|
|
|
import com.qs.mp.common.utils.LogUtil;
|
|
|
import com.qs.mp.common.utils.LogUtils;
|
|
|
import com.qs.mp.common.utils.StringUtils;
|
|
@@ -102,12 +103,13 @@ public class LinkController {
|
|
|
return AjaxResult.error("非法访问");
|
|
|
}
|
|
|
|
|
|
+ String appId = AppSourceEnum.MSDQ.getAppId();
|
|
|
|
|
|
if (StringUtils.isBlank(schemeParam.getBoxId())) {
|
|
|
// 生成scheme,并缓存到redis中,1天过期
|
|
|
- scheme = wxUrlLinkService.generateUrlSchema("", "uid=" + channel.getUserId() + "&t=" + UserShareVO.SHARE_TYPE_SITE, userAppId);
|
|
|
+ scheme = wxUrlLinkService.generateUrlSchema("", "uid=" + channel.getUserId() + "&t=" + UserShareVO.SHARE_TYPE_SITE, appId);
|
|
|
} else {
|
|
|
- scheme = wxUrlLinkService.generateUrlSchema("pages/ticketBox/detail", "uid=" + channel.getUserId() + "&t=" + UserShareVO.SHARE_TYPE_SITE + "&boxId=" + schemeParam.getBoxId(), userAppId);
|
|
|
+ scheme = wxUrlLinkService.generateUrlSchema("pages/ticketBox/detail", "uid=" + channel.getUserId() + "&t=" + UserShareVO.SHARE_TYPE_SITE + "&boxId=" + schemeParam.getBoxId(), appId);
|
|
|
}
|
|
|
|
|
|
redisCache.setCacheObject(key, scheme,1, TimeUnit.DAYS);
|