fix: 话费按营业厅剩余话费页面显示
This commit is contained in:
@@ -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, "_") {
|
||||
|
||||
Reference in New Issue
Block a user