|
|
@ -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) { |
|
|
|