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
+7 -2
View File
@@ -438,8 +438,13 @@ func allowedActions(row store.TaskOrder) []string {
switch row.OrderStatus {
case 2:
var snapshot map[string]any
if json.Unmarshal(row.RuleSnapshot, &snapshot) == nil && snapshot["dispatch_mode"] == "manual" {
return []string{"submit", "contact_support"}
if json.Unmarshal(row.RuleSnapshot, &snapshot) == nil {
if snapshot["balance_shortage_pending"] == true {
return []string{"contact_support"}
}
if snapshot["dispatch_mode"] == "manual" {
return []string{"submit", "contact_support"}
}
}
return []string{"contact_support"}
case 3, 5, 6, 8: