Browse Source

fix;bug

token_replace
Tooooommy 4 years ago
parent
commit
643e0c46f0
  1. 2
      models/area_store.go

2
models/area_store.go

@ -36,7 +36,7 @@ func (t *AreaStore) TableName() string {
}
func (t *AreaStore) Login(activityId int, username, password string) (bool, error) {
password = helper.Md5("hdzj==" + password)
return core.GetXormAuto().Where("activity_id=? and phone=? and password=?", activityId, username, password).Get(t)
return core.GetXormAuto().NoAutoCondition().Where("activity_id=? and phone=? and password=?", activityId, username, password).Get(t)
}
func (t *AreaStore) GetByUserId(activityId, userId int) (bool, error) {

Loading…
Cancel
Save