Browse Source

fix:bug

token_replace
Tooooommy 4 years ago
parent
commit
db53e536f1
  1. 12
      controllers/client/login.go

12
controllers/client/login.go

@ -33,15 +33,19 @@ func (t *UserCtl) EntryLogin() {
t.CheckErr(err)
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)
exist, err = area.Get(area, entry.AreaId)
t.CheckErr(err)
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)
exist, err = customer.Get(customer, entry.Pid)

Loading…
Cancel
Save