feat: publish member notices and balance-aware order settlement
Deploy olons-admin production / deploy (push) Successful in 8m50s

This commit is contained in:
richjohnrambo
2026-10-22 21:56:06 +08:00
parent 5a5540785d
commit 70ef3d9d04
10 changed files with 457 additions and 163 deletions
@@ -1,6 +1,7 @@
package sys
import (
"strings"
"testing"
"time"
@@ -35,3 +36,12 @@ func TestCanAdminMatchOrder(t *testing.T) {
})
}
}
func TestBalanceShortageMessageShowsExactDifference(t *testing.T) {
message := balanceShortageMessage(30000, 50000)
for _, expected := range []string{"余额不足", "¥300.00", "¥500.00", "还差 ¥200.00", "充值审核通过"} {
if !strings.Contains(message, expected) {
t.Fatalf("balanceShortageMessage() = %q, missing %q", message, expected)
}
}
}