Merge branches 'main' and 'main' of https://cnb.cool/blzing/blazing

This commit is contained in:
昔念
2026-04-29 10:15:45 +08:00
parent e80e5d526c
commit 29f70513e8
2 changed files with 6 additions and 18 deletions

View File

@@ -76,6 +76,8 @@ steps:
CGO_ENABLED: 0
GO111MODULE: on
GOSUMDB: off
GOMODCACHE: /woodpecker/go/pkg/mod
GOCACHE: /woodpecker/.cache/go-build
commands:
# 2. 清空主源文件关键先删空再写入
- >
@@ -135,9 +137,10 @@ steps:
- ls -lh ./build/
- echo "产物名称:$BIN_NAME"
- echo "✅ Logic服务编译完成"
# volumes:
# - /ext/go/pkg/mod:~/go/pkg/mod
# - /ext/.cache/go-build:~/.cache/go-build
volumes:
# 持久化 Go 模块缓存和编译缓存避免每次流水线都重新下载/重新编译
- /ext/woodpecker-cache/go/pkg/mod:/woodpecker/go/pkg/mod
- /ext/woodpecker-cache/.cache/go-build:/woodpecker/.cache/go-build
# ========== 6. SCP推送产物依赖编译+配置解析 ==========

View File

@@ -94,21 +94,6 @@ func (s *GoldListService) ModifyBefore(ctx context.Context, method string, param
if rate < minRate || rate > maxRate {
return fmt.Errorf("不允许超过10%%的单子,当前需在昨日均价 %.4f 的上下10%%范围内(%.4f - %.4f", prevAvg, minRate, maxRate)
}
} else {
var items []model.GoldBeanOrder
if err = s.dbm_fix(s.Model).WhereIn("id", param["ids"]).Scan(&items); err != nil {
return err
}
for _, v := range items {
if _, err = s.dbm_fix(s.Model).
Where("rate", v.Rate).
Where("exchange_num", v.ExchangeNum).
Where("player_id", service.SuperAdminUserID).
Delete(); err != nil {
return err
}
}
}
return