fix: 扫码登录后保留会话并补上余量语言参数
This commit is contained in:
@@ -78,6 +78,15 @@ func TestParseBillAPI(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseBillLanguageType(t *testing.T) {
|
||||
js := `VUE_APP_XX_BASE_URL:"https://bill.example.10010.com",key_query:"servicequerybusiness",version:"WT",languageType="chinese"
|
||||
m("".concat(g.c,"/operationservice/queryOcsPackageFlowLeftContentRevisedInJune"),e)`
|
||||
api, ok := parseBillAPI(js, "https://img.example.10010.com/plan/index.html", "/operationservice/queryOcsPackageFlowLeftContentRevisedInJune")
|
||||
if !ok || api.Language != "chinese" {
|
||||
t.Fatalf("%v %#v", ok, api)
|
||||
}
|
||||
}
|
||||
|
||||
func TestResolveNav(t *testing.T) {
|
||||
texts := []string{
|
||||
`function getNavJson(){ var url = CommonsVariables.QueryRequestPrefix() +'/QueryNavigations'; }`,
|
||||
|
||||
Reference in New Issue
Block a user