|
|
|
@ -7,6 +7,7 @@ import com.example.demo.Util.RedisLockUtil; |
|
|
|
import com.example.demo.config.interfac.Log; |
|
|
|
import com.example.demo.domain.DTO.GoldDetailDTO; |
|
|
|
import com.example.demo.domain.DTO.GoldUserDTO; |
|
|
|
import com.example.demo.domain.DTO.WalletDTO; |
|
|
|
import com.example.demo.domain.entity.Admin; |
|
|
|
import com.example.demo.domain.entity.User; |
|
|
|
import com.example.demo.domain.vo.coin.GoldDetail; |
|
|
|
@ -465,6 +466,14 @@ public class GoldDetailController { |
|
|
|
if (user.getMarket() != null) { |
|
|
|
user.setMarket(languageTranslationUtil.translate(user.getMarket(), lang)); |
|
|
|
} |
|
|
|
// 翻译钱包 |
|
|
|
if (user.getWalletList() != null) { |
|
|
|
for (WalletDTO wallet : user.getWalletList()) { |
|
|
|
if (wallet.getWalletName() != null) { |
|
|
|
wallet.setWalletName(languageTranslationUtil.translate(wallet.getWalletName(), lang)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|