MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Bind

Method Bind

models/wechat.go:60–63  ·  view source on GitHub ↗

绑定用户

(openid, memberId interface{})

Source from the content-addressed store, hash-verified

58
59//绑定用户
60func (m *Wechat) Bind(openid, memberId interface{}) (err error) {
61 _, err = orm.NewOrm().QueryTable(m).Filter("openid", openid).Filter("member_id", 0).Update(orm.Params{"member_id": memberId, "sess_key": cryptil.Md5Crypt(fmt.Sprint(openid))})
62 return
63}

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected