正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论