fix:修正参数配置文件显示
This commit is contained in:
@@ -8,10 +8,10 @@ type LoginForm struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LoginMeta struct {
|
type LoginMeta struct {
|
||||||
N string `json:"n"`
|
N string `json:"n"`
|
||||||
VType string `json:"v_type"`
|
Type string `json:"type"`
|
||||||
Acid string `json:"acid"`
|
Acid string `json:"acid"`
|
||||||
Enc string `json:"enc"`
|
Enc string `json:"enc"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoginInfo struct {
|
type LoginInfo struct {
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -62,7 +62,7 @@ func main() {
|
|||||||
|
|
||||||
var chkstr = G.Token + G.Form.UserName + G.Token + G.Md5
|
var chkstr = G.Token + G.Form.UserName + G.Token + G.Md5
|
||||||
chkstr += G.Token + G.Meta.Acid + G.Token + G.Ip
|
chkstr += G.Token + G.Meta.Acid + G.Token + G.Ip
|
||||||
chkstr += G.Token + G.Meta.N + G.Token + G.Meta.VType
|
chkstr += G.Token + G.Meta.N + G.Token + G.Meta.Type
|
||||||
chkstr += G.Token + G.EncryptedInfo
|
chkstr += G.Token + G.EncryptedInfo
|
||||||
G.EncryptedChkstr = Util.Sha1(chkstr)
|
G.EncryptedChkstr = Util.Sha1(chkstr)
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ func main() {
|
|||||||
"info": G.EncryptedInfo,
|
"info": G.EncryptedInfo,
|
||||||
"chksum": G.EncryptedChkstr,
|
"chksum": G.EncryptedChkstr,
|
||||||
"n": G.Meta.N,
|
"n": G.Meta.N,
|
||||||
"type": G.Meta.VType,
|
"type": G.Meta.Type,
|
||||||
"os": "Windows 10",
|
"os": "Windows 10",
|
||||||
"name": "windows",
|
"name": "windows",
|
||||||
"double_stack": "0",
|
"double_stack": "0",
|
||||||
|
|||||||
Reference in New Issue
Block a user