|
@@ -232,7 +232,7 @@ func (this *ActivitySignCoAntroller) ByHand() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
userMobile, err := models.GetWxUserItemByMobile(Mobile)
|
|
userMobile, err := models.GetWxUserItemByMobile(Mobile)
|
|
- if err != nil {
|
|
|
|
|
|
+ if err != nil && err.Error() != utils.ErrNoRow() {
|
|
br.Msg = "签到失败"
|
|
br.Msg = "签到失败"
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
@@ -275,7 +275,7 @@ func (this *ActivitySignCoAntroller) ByHand() {
|
|
item.CompanyName = CompanyName
|
|
item.CompanyName = CompanyName
|
|
//添加日志记录
|
|
//添加日志记录
|
|
go services.AddCygxActivitySigninLog(item)
|
|
go services.AddCygxActivitySigninLog(item)
|
|
- if user.CompanyId == 1 {
|
|
|
|
|
|
+ if user.CompanyId <= 1 {
|
|
detail.IsNewUser = true
|
|
detail.IsNewUser = true
|
|
}
|
|
}
|
|
detail.ActivityId = activityId
|
|
detail.ActivityId = activityId
|