Browse Source

no message

xingzai 1 year ago
parent
commit
e5202a754f
1 changed files with 1 additions and 1 deletions
  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 = "签到失败"