|
@ -33,15 +33,19 @@ func (t *UserCtl) EntryLogin() { |
|
|
t.CheckErr(err) |
|
|
t.CheckErr(err) |
|
|
t.Assert(exist, code.MSG_ENTRYPEOPLE_NOT_EXIST, "录入人员不存在") |
|
|
t.Assert(exist, code.MSG_ENTRYPEOPLE_NOT_EXIST, "录入人员不存在") |
|
|
|
|
|
|
|
|
|
|
|
activity := new(models.Activity) |
|
|
|
|
|
exist, err = activity.Get(activity, activityId) |
|
|
|
|
|
t.CheckErr(err) |
|
|
|
|
|
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") |
|
|
|
|
|
|
|
|
area := new(models.AreaStore) |
|
|
area := new(models.AreaStore) |
|
|
exist, err = area.Get(area, entry.AreaId) |
|
|
exist, err = area.Get(area, entry.AreaId) |
|
|
t.CheckErr(err) |
|
|
t.CheckErr(err) |
|
|
t.Assert(exist, code.MSG_AREASTORE_NOT_EXIST, "地区不存在") |
|
|
t.Assert(exist, code.MSG_AREASTORE_NOT_EXIST, "地区不存在") |
|
|
|
|
|
|
|
|
activity := new(models.Activity) |
|
|
|
|
|
exist, err = activity.Get(activity, activityId) |
|
|
|
|
|
t.CheckErr(err) |
|
|
|
|
|
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") |
|
|
|
|
|
|
|
|
if activity.MoreAreaMode == define.StatusClose && area.IsMainArea != 1 { |
|
|
|
|
|
t.ERROR("用户密码不存在", code.MSG_ERR_LOGIN_ERR) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
customer := new(models.Customer) |
|
|
customer := new(models.Customer) |
|
|
exist, err = customer.Get(customer, entry.Pid) |
|
|
exist, err = customer.Get(customer, entry.Pid) |
|
|