|
@@ -193,10 +193,13 @@ func (this *SubVipPayOrder) CreateOrder() {
|
|
|
discountId, _ := this.GetInteger("discountId")
|
|
|
if discountId > 0 {
|
|
|
isgive = true
|
|
|
- timeNum, timeType := util.GiveInfo(userId, useProduct, 0, discountId) //获取满赠时长
|
|
|
+ timeNum, timeType, activityName := util.GiveInfo(userId, useProduct, 0, discountId) //获取满赠时长
|
|
|
filter.GiveCycle = timeNum
|
|
|
filter.GiveType = timeType
|
|
|
filter.DisCountId = discountId
|
|
|
+ if strings.Contains(activityName, config.Config.ActivityName) {
|
|
|
+ filter.Badge = "202111" //双十一角标展示
|
|
|
+ }
|
|
|
}
|
|
|
filterStr, _ := json.Marshal(filter)
|
|
|
insertMap := map[string]interface{}{
|
|
@@ -351,10 +354,13 @@ func (this *SubVipPayOrder) Renew() {
|
|
|
discountId, _ := this.GetInteger("discountId")
|
|
|
useProduct, _ := this.GetInteger("useProduct")
|
|
|
if discountId > 0 && useProduct > 0 {
|
|
|
- timeNum, timeType := util.GiveInfo(userId, useProduct, 0, discountId) //获取满赠时长
|
|
|
+ timeNum, timeType, activityName := util.GiveInfo(userId, useProduct, 0, discountId) //获取满赠时长
|
|
|
filter.GiveCycle = timeNum
|
|
|
filter.GiveType = timeType
|
|
|
filter.DisCountId = discountId
|
|
|
+ if strings.Contains(activityName, config.Config.ActivityName) {
|
|
|
+ filter.Badge = "202111" //双十一角标展示
|
|
|
+ }
|
|
|
}
|
|
|
mog_id := entity.JyVipSubStruct.SaveSelectLog(userId, openId, &filter)
|
|
|
if mog_id == "" {
|