|
@@ -217,7 +217,20 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
String DOMAIN = getGptDomain(domain, goodsDonSku);
|
|
String DOMAIN = getGptDomain(domain, goodsDonSku);
|
|
|
log.info("domain:{},用户:{},所在车次:{},座位id:{},在{}获取跳转GPT镜像的登录url", DOMAIN, userId, groupsTrips.getId(), relationId, DateTime.now());
|
|
log.info("domain:{},用户:{},所在车次:{},座位id:{},在{}获取跳转GPT镜像的登录url", DOMAIN, userId, groupsTrips.getId(), relationId, DateTime.now());
|
|
|
//另外一版镜像gpt
|
|
//另外一版镜像gpt
|
|
|
- return DOMAIN + (DOMAIN.equals("https://gpt.bestaistore.com") ? "/codetoken?logintoken=" + chatgptUser.getUserToken() : "/auth/logintoken?carid=" + carId + "&usertoken=" + chatgptUser.getUserToken() );
|
|
|
|
|
|
|
+ SysConfig gptNewDomain = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
|
|
|
+ .eq(SysConfig::getSysKey, "mirror_gpt_new_domain")
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ Boolean isNewGptDomain = false;
|
|
|
|
|
+ if (gptNewDomain != null) {
|
|
|
|
|
+ String sysValue = gptNewDomain.getSysValue();
|
|
|
|
|
+ if (JSONUtil.isJsonArray(sysValue)) {
|
|
|
|
|
+ List<String> domainList = JSONUtil.parseArray(sysValue).toList(String.class);
|
|
|
|
|
+ if (domainList.contains(DOMAIN)) {
|
|
|
|
|
+ isNewGptDomain = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return DOMAIN + (isNewGptDomain || DOMAIN.equals("https://gpt.bestaistore.com") ? "/codetoken?logintoken=" + chatgptUser.getUserToken() : "/auth/logintoken?carid=" + carId + "&usertoken=" + chatgptUser.getUserToken() );
|
|
|
} else {
|
|
} else {
|
|
|
throw BusinessRuntimeException.getInstance("服务器出了点问题");
|
|
throw BusinessRuntimeException.getInstance("服务器出了点问题");
|
|
|
}
|
|
}
|