示例#1
0
func AddSignature(parameters *simple_http.Parameters) {
	//AddSignature
	list := make([]string, len(*parameters))
	for i := range list {
		list[i] = (*parameters)[i].Key + string(sCharEqual) + (*parameters)[i].Value
	}
	sort.Strings(list)
	var buffer bytes.Buffer
	for _, str := range list {
		buffer.WriteString(str)
	}
	buffer.WriteString(SIGN_KEY)
	parameters.Add(PARAM_SIGN, misc.ComputeMD5(buffer.String()))
}
示例#2
0
	BDUSS string

	NetType       string
	ClientType    string
	ClientID      string
	ClientVersion string
	PhoneIMEI     string
}

const (
	Windows8 = `4`
	Android  = `2`
)

var DefaultPhoneIMEI = misc.ComputeMD5(``)

func NewDefaultAndroidAccount(id string) *Account {
	return &Account{
		ID:            id,
		NetType:       ``,
		ClientType:    Android,
		ClientID:      ``,
		ClientVersion: `6.1.3`,
		PhoneIMEI:     DefaultPhoneIMEI, //...
	}

}

//Maribel Hearn ---------v
const DefaultClientID = `4C-07-16-00-F1-C0-5B-47-62-86-B7-35-AF-24-24-DB-E7-05-86-8B-BF-E6-A4-06-B2-54-E3-AB-81-2D-9D-32`