Ver Fonte

no message

xingzai há 1 ano atrás
pai
commit
e5202a754f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      controllers/activity_sign.go

+ 1 - 1
controllers/activity_sign.go

@@ -91,7 +91,7 @@ func (this *ActivitySignCoAntroller) Detail() {
 	item.CountryCode = user.CountryCode
 	item.OpenId = user.OpenId
 	item.CreateTime = time.Now()
-	if total == 0 && user.Mobile != "" || (applyCount > 0 && user.CompanyId > 1) {
+	if total == 0 && user.Mobile != "" && (applyCount > 0 || user.CompanyId > 1) {
 		err = models.AddCygxActivitySignin(item)
 		if err != nil {
 			br.Msg = "签到失败"