- 避免饿百网页上拉下来的活动重名

This commit is contained in:
gazebo
2019-08-19 14:12:25 +08:00
parent 7653f5ff5a
commit 6801e17fc9
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package ebai
import (
"fmt"
"time"
"git.rosy.net.cn/jx-callback/business/jxutils"
@@ -73,7 +74,7 @@ func (c *PurchaseHandler) GetPageActList(ctx *jxcontext.Context, createdFrom tim
if utils.Timestamp2Time(ebaiAct.CreateTime).Sub(createdFrom) > 0 {
act := &model.Act2{
Act: model.Act{
Name: ebaiAct.ActivityName,
Name: fmt.Sprintf("%s-%s", ebaiAct.ActivityName, ebaiAct.ActivityID),
Type: ebaiPageActType2Jx(ebaiAct.ActivityType),
Status: ebaiPageActStatus2Jx(ebaiAct.Status),
Source: ebaiAct.User,