xingzai 1 год назад
Родитель
Сommit
e5202a754f
1 измененных файлов с 1 добавлено и 1 удалено
  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 = "签到失败"