|
|
@@ -30,6 +30,7 @@ import com.cyksj.service.mail.CuiQiuMailService;
|
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
|
import com.cyksj.service.relation.GroupsRelationNetflixService;
|
|
|
+import com.cyksj.service.translations.BackInfoTranslationsFrontService;
|
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
|
import com.cyksj.service.user.UserLoginRecordService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
@@ -95,6 +96,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
private final UserLoginRecordService userLoginRecordService;
|
|
|
|
|
|
+ private final BackInfoTranslationsFrontService backInfoTranslationsFrontService;
|
|
|
+
|
|
|
private static final GlobalThreadPoolTaskExecutor TASK_EXECUTOR = GlobalThreadPoolTaskExecutor.getInstance();
|
|
|
|
|
|
//脆球邮箱后缀
|
|
|
@@ -124,7 +127,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
.build());
|
|
|
//过滤邀请制、已失效的车位
|
|
|
Integer size = list.getTotalCount().intValue();
|
|
|
-
|
|
|
+ String lang = request.getHeader("lang");
|
|
|
list.getDataList().forEach(ticket -> {
|
|
|
if (ticket.getSkuId() == null || ticket.getGoodsId() == null) {
|
|
|
return;
|
|
|
@@ -228,6 +231,13 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
Integer codeNum = getUserCodeNumBySkuId(ticket.getUserId(), ticket.getSkuId(), isHasVerifyCode);
|
|
|
ticket.setCodeNum(codeNum);
|
|
|
}
|
|
|
+ //多语言
|
|
|
+ if (!StrUtil.equals(lang, UserPageLanguage.Language.zh_HK.name())) {
|
|
|
+ Optional.ofNullable(backInfoTranslationsFrontService.setSpecVal(ticket.getSkuId(), lang))
|
|
|
+ .ifPresent(val -> ticket.setSpecVal(val));
|
|
|
+ Optional.ofNullable(backInfoTranslationsFrontService.setGoodsTitle(ticket.getGoodsId(), lang))
|
|
|
+ .ifPresent(title -> ticket.setTitle(title));
|
|
|
+ }
|
|
|
});
|
|
|
userLoginRecordService.saveUserLoginDayRecord(userId);
|
|
|
return list;
|