6666
This commit is contained in:
parent
99c0f62d55
commit
9664ec92d8
@ -63,7 +63,7 @@ func (r *OrderMemberService) AddOrderMember(tx *gorm.DB, UserId, SystemMemberId
|
||||
// 将差值转换为天数
|
||||
diffDays := int(diff.Hours() / 24)
|
||||
totalDays := diffDays + int(systemMember.MemberDays)
|
||||
if totalDays > 180 {
|
||||
if totalDays > 3 {
|
||||
return nil, errors.New("超出会员最大购买天数")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user