|
|
@@ -254,23 +254,18 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
GoodsDonSku goodsDonSku = skuMapper.selectById(groupsTrips.getSkuId());
|
|
|
if (goodsDonSku != null && goodsDonSku.getIsMirror() && goodsDonSku.getIsCar()) {
|
|
|
ChatgptUser chatgptUser = getChatgptCarUser(userId, relationId, groupsRelation, goodsDonSku);
|
|
|
-
|
|
|
String DOMAIN = "https://chat.galaxydvd.com";
|
|
|
- if(goodsDonSku.getId() == 444){
|
|
|
- DOMAIN = "https://car.galaxydvd.com";
|
|
|
- }else {
|
|
|
- try {
|
|
|
- SysConfig sysConfig = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class).eq(SysConfig::getSysKey, "mirror_gpt_domain"));
|
|
|
- if (sysConfig != null) {
|
|
|
- String sysValue = sysConfig.getSysValue();
|
|
|
- if (JSONUtil.isJsonArray(sysValue)) {
|
|
|
- List<String> domainList = JSONUtil.parseArray(sysValue).toList(String.class);
|
|
|
- DOMAIN = domainList.get(RandomUtil.randomInt(domainList.size()));
|
|
|
- }
|
|
|
+ try {
|
|
|
+ SysConfig sysConfig = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class).eq(SysConfig::getSysKey, goodsDonSku.getId() == 444 ? "zhihu_gpt_domain" : "mirror_gpt_domain"));
|
|
|
+ if (sysConfig != null) {
|
|
|
+ String sysValue = sysConfig.getSysValue();
|
|
|
+ if (JSONUtil.isJsonArray(sysValue)) {
|
|
|
+ List<String> domainList = JSONUtil.parseArray(sysValue).toList(String.class);
|
|
|
+ DOMAIN = domainList.get(RandomUtil.randomInt(domainList.size()));
|
|
|
}
|
|
|
- }catch (Exception e){
|
|
|
- log.error("随机抽取域名错误. msg:{}", StringUtil.getErrorText(e));
|
|
|
}
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("随机抽取域名错误. msg:{}", StringUtil.getErrorText(e));
|
|
|
}
|
|
|
|
|
|
log.info("domain:{},用户:{},所在车次:{},座位id:{},在{}获取跳转GPT镜像的登录url", DOMAIN, userId, groupsTrips.getId(), relationId, DateTime.now());
|