xingzai 1 an în urmă
părinte
comite
2b373cdf6a
2 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 1 0
      models/product_interior_history.go
  2. 1 0
      services/product_interior.go

+ 1 - 0
models/product_interior_history.go

@@ -17,6 +17,7 @@ type CygxProductInteriorHistory struct {
 	ModifyTime        time.Time `description:"修改时间"`
 	RealName          string    `description:"用户实际名称"`
 	SellerName        string    `description:"所属销售"`
+	RegisterPlatform  int       `description:"来源 1小程序,2:网页"`
 }
 
 // 添加历史信息

+ 1 - 0
services/product_interior.go

@@ -121,6 +121,7 @@ func AddCygxProductInteriorHistory(user *models.WxUserItem, articleId int) (err
 	historyRecord.Email = user.Email
 	historyRecord.CompanyId = user.CompanyId
 	historyRecord.CompanyName = user.CompanyName
+	historyRecord.RegisterPlatform = utils.REGISTER_PLATFORM
 	sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
 	if err != nil && err.Error() != utils.ErrNoRow() {
 		return