feat:支持多运营商
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
.idea/
|
||||
Mmx*
|
||||
Config.json
|
||||
/GoBuilder.bat
|
||||
/autoLogin*
|
||||
|
||||
@@ -25,7 +25,7 @@ func (a *Config) Generate() *LoginInfo {
|
||||
UrlCheckApi: "http://" + a.From.Domain + "/cgi-bin/rad_user_info",
|
||||
Meta: &a.Meta,
|
||||
Form: &LoginForm{
|
||||
UserName: a.From.UserName + "@cmcc",
|
||||
UserName: a.From.UserName + "@" + a.From.UserType,
|
||||
PassWord: a.From.PassWord,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package Modles
|
||||
type LoginForm struct {
|
||||
Domain string `json:"domain"`
|
||||
UserName string `json:"username"`
|
||||
UserType string `json:"user_type"`
|
||||
PassWord string `json:"password"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user