作者 陈志颖

fix:增加相同截止时间活动判断

@@ -333,7 +333,7 @@ func (cashPoolService *CashPoolService) CreateExchangeCashActivity(createExchang @@ -333,7 +333,7 @@ func (cashPoolService *CashPoolService) CreateExchangeCashActivity(createExchang
333 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 333 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
334 } else { 334 } else {
335 for _, activity := range activities { 335 for _, activity := range activities {
336 - if t2.Equal(activity.Deadline) { 336 + if t2.Format("2006-01-02") == activity.Deadline.UTC().Format("2006-01-02") {
337 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "兑换活动截止时间不能重合") 337 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "兑换活动截止时间不能重合")
338 } 338 }
339 } 339 }