feat: add global system notices and Beijing order time display
Deploy olons-server production / deploy (push) Successful in 3m12s

This commit is contained in:
richjohnrambo
2026-10-22 21:56:07 +08:00
parent 9bb479b506
commit 8ce67648b1
22 changed files with 581 additions and 121 deletions
+9
View File
@@ -170,3 +170,12 @@ func TestOrdersRejectsUnknownStatus(t *testing.T) {
t.Fatalf("expected status error, got %v", err)
}
}
func TestAllowedActionsBalancePendingOrderCannotBeSubmitted(t *testing.T) {
row := store.TaskOrder{OrderStatus: 2, RuleSnapshot: json.RawMessage(`{"dispatch_mode":"manual","balance_shortage_pending":true}`)}
for _, action := range allowedActions(row) {
if action == "submit" {
t.Fatal("余额不足待处理订单不应允许提交")
}
}
}