【Fix】紧急修复site数据优化产生的连接wp数据异常的bug #32

Merged
zhuotianyuan merged 1 commits from zhuotianyuan/API:main into main 2025-12-19 09:29:39 +00:00
Collaborator
No description provided.
zhuotianyuan added 2 commits 2025-12-19 09:02:16 +00:00
4f92fe6d1a feat: 更新数据库配置并优化订单同步功能
修改本地数据库配置,添加端口并更新密码
移除站点服务中不必要的字段过滤
将统计DTO中的siteId类型从string改为number
为WP服务添加时间范围参数以优化订单获取
在订单同步服务中添加7天时间范围限制
添加woocommerce-rest-api依赖
longbot changed title from main to 【Fix】紧急修复site数据优化产生的连接wp数据异常的bug 2025-12-19 09:03:42 +00:00
longbot requested changes 2025-12-19 09:07:00 +00:00
longbot left a comment
Collaborator

改一下

改一下
@ -16,8 +16,9 @@ export default {
dataSource: {
default: {
host: 'localhost',
port: 33306,
Collaborator

这个文件不要提交

这个文件不要提交
@ -107,1 +106,3 @@
const orders = await this.wpService.getOrders(siteId); // 调用 WooCommerce API 获取订单
async syncOrders(siteId: string) {
const daysRange = 7;
// 获取当前时间和7天前时间
Collaborator

注释一下是临时方案,加个TODO标记,明天记得改掉

注释一下是临时方案,加个TODO标记,明天记得改掉
zhuotianyuan force-pushed main from 39c9ed8010 to 40fa4f0761 2025-12-19 09:14:15 +00:00 Compare
zhuotianyuan force-pushed main from 40fa4f0761 to 927857a795 2025-12-19 09:17:08 +00:00 Compare
zhuotianyuan added 1 commit 2025-12-19 09:28:59 +00:00
ae34d1fab0 fix: 修复订单同步时未限制时间范围的问题
修改订单同步逻辑,默认只同步最近7天的订单数据
移除站点服务中不必要的字段解构
扩展WP服务getOrders方法支持参数传递
zhuotianyuan merged commit a956c963c0 into main 2025-12-19 09:29:39 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: yoone/API#32
No description provided.