新增:自动化规则支持拍下未付款自动改价

- 新增 order_created 触发器,识别买家拍下待付款交易卡片
- 新增 MTOP 订单改价接口 mtop.taobao.idle.trade.user.adjust.price(含 token 重签与凭证恢复)
- 新增 adjust_price 自动化动作,目标价格按整数分校验与执行,错误按三态收口
- 应用层规则校验限定改价动作只用于拍下未付款规则,可附带买家提醒文案
- 前端规则页新增拍下改价类型、目标价格与可选提醒编辑器
This commit is contained in:
lettimepassby committed 2026-08-20 10:48:51 +08:00
1 parent c3020bde09
commit 7c4a944b43
39 files changed
+1218 -160

No files matched your search

+10
View File
@@ -43,6 +43,11 @@ func (f *fakeRunMtop) ConsignContext(context.Context, string, string) (bool, []s
return true, nil, "", nil
}
// AdjustOrderPriceContext 满足 MTOP 客户端接口,引擎测试不关心订单改价。
func (f *fakeRunMtop) AdjustOrderPriceContext(context.Context, string, string, int64) (bool, []string, string, error) {
return true, nil, "", nil
}
// FetchItemsPage 封装Fetch商品列表页码业务协调。
func (f *fakeRunMtop) FetchItemsPage(context.Context, string, int, int) (*mtop.ItemListResult, error) {
return nil, nil
@@ -76,6 +81,11 @@ func (f *fakeFailTokenMtop) ConsignContext(context.Context, string, string) (boo
return true, nil, "", nil
}
// AdjustOrderPriceContext 满足 MTOP 客户端接口,token 失败测试不关心订单改价。
func (f *fakeFailTokenMtop) AdjustOrderPriceContext(context.Context, string, string, int64) (bool, []string, string, error) {
return true, nil, "", nil
}
// FetchItemsPage 封装Fetch商品列表页码业务协调。
func (f *fakeFailTokenMtop) FetchItemsPage(context.Context, string, int, int) (*mtop.ItemListResult, error) {
return nil, nil