refactor(config): 重构配置管理并优化翻译功能

- 移除 @Component 注解,改用 @EnableConfigurationProperties 在启动类中启用配置
- 将PingPong支付配置从主配置文件移至开发环境配置文件
- 添加PayPal支付配置和百度翻译配置到开发环境
- 将商品和SKU名称翻译逻辑从查询时移至创建时,提高性能
- 移除运行时翻译方法,改为数据库中存储已翻译内容
- 标记PaymentController为过时,系统已切换到PayPal支付
- 优化pom.xml配置,添加classifier属性
This commit is contained in:
2025-12-24 17:39:36 +08:00
parent 425c46217e
commit 0f2f5c8630
10 changed files with 133 additions and 172 deletions

View File

@@ -16,11 +16,15 @@ import java.util.Map;
import java.util.Optional;
/**
* 支付控制器
* 支付控制器PingPong支付
*
* @deprecated 系统已切换到 PayPal 支付,此控制器保留以备将来需要时使用
* 如需重新启用,请取消注释 @RestController 和 @RequestMapping 注解
*/
@Deprecated
@Slf4j
@RestController
@RequestMapping("/api/payment")
// @RestController
// @RequestMapping("/api/payment")
@RequiredArgsConstructor
public class PaymentController {