xingzai 1 жил өмнө
parent
commit
09a52d6bd3

+ 1 - 1
services/activity_special_trip.go

@@ -265,8 +265,8 @@ func DeductTripRemainingtimesByUser(user *models.WxUserItem, activityInfo *model
 				err = errors.New("AddCygxActivitySpecialPermissionPoints, Err:" + e.Error())
 				return
 			}
+			return
 		}
-		return
 	} else {
 		condition = " AND  company_id  = ?  AND points  > 0   ORDER BY  points DESC LIMIT 1   "
 		pars = append(pars, companyId)