fix: 话费按营业厅剩余话费页面显示

This commit is contained in:
Nixevol
2026-10-16 16:46:28 +08:00
parent def0b08784
commit 83b62ca7d2
6 changed files with 159 additions and 12 deletions
+8
View File
@@ -1,10 +1,18 @@
package unicom
import (
"net/url"
"strings"
"testing"
)
func TestPhoneFromPIW(t *testing.T) {
raw := url.QueryEscape(`{"rme":{"u":"13800000000"}}`)
if phoneFromPIW(raw) != "13800000000" {
t.Fatal(phoneFromPIW(raw))
}
}
func TestJSONPCallbackName(t *testing.T) {
name := jsonpCallback()
if !strings.HasPrefix(name, "jQuery") || !strings.Contains(name, "_") {