|
@@ -66,6 +66,8 @@ import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.service.IUserStudyRecordService;
|
|
|
import com.zhongzheng.modules.user.vo.SubjectStudyRecordVo;
|
|
|
import net.polyv.common.v1.util.StringUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -243,6 +245,8 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
@Value("${oldStudySys.educationalInspector}")
|
|
|
private String INFORM_PATH;
|
|
|
|
|
|
+ private static Logger log = LoggerFactory.getLogger(GoodsServiceImpl.class);
|
|
|
+
|
|
|
@Override
|
|
|
public GoodsVo queryById(Long goodsId) {
|
|
|
Goods db = this.baseMapper.selectById(goodsId);
|
|
@@ -1155,7 +1159,8 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
// String domainH5 = "https://h.xyyxt.net";
|
|
|
String domain = "https://zzyxt.gdzzkj.net/";
|
|
|
String domainH5 = "https://h.gdzzkj.net";
|
|
|
- if (ObjectUtils.isNotNull(bo.getTenantId()) && "867735392558919680".equals(bo.getTenantId())){
|
|
|
+ Long tenantId = 867735392558919680L; //祥粤云
|
|
|
+ if (ObjectUtils.isNotNull(bo.getTenantId()) && bo.getTenantId().equals(tenantId)){
|
|
|
domain = "https://web.xyyxt.net/";
|
|
|
domainH5 = "https://h.xyyxt.net";
|
|
|
}
|
|
@@ -1210,6 +1215,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
UserPhoneBo phoneBo = new UserPhoneBo();
|
|
|
phoneBo.setTelphone(user.getTelphone());
|
|
|
phoneBo.setTenantId(bo.getTenantId());
|
|
|
+ log.info(String.format("旧系统获取商品学习中心路径:%s(url),%s(tenantId)",url,bo.getTenantId()));
|
|
|
//缓存用户手机号码 30分钟失效
|
|
|
redisCache.setCacheObjectTenant(nowTime.toString(), JSONObject.toJSONString(phoneBo), 30, TimeUnit.MINUTES);
|
|
|
return url;
|