浏览代码

meger:代码合并

wangshan 1 年之前
父节点
当前提交
2d345aacd1
共有 4 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      rpc/partnerlib/crontab/service/docinUpdate.go
  2. 二进制
      rpc/partnerlib/partner.exe
  3. 二进制
      rpc/stdlib/stdlib.exe
  4. 2 2
      services/model/stdlib.go

+ 1 - 1
rpc/partnerlib/crontab/service/docinUpdate.go

@@ -27,7 +27,7 @@ func UpdateDocinInfos(b []byte) (err error, lastId int64, expectTotal, actualTot
 				doc.UpdateDate, _ = time.ParseInLocation(date.Date_Full_Layout, v.ModifyDate, time.Local)
 				doc.Price = int(v.Price * entity.Multiple)
 				doc.PriceVip = v.PriceVip
-				doc.ProductType = v.Ifcharge + entity.Charge
+				doc.ProductType = int64(v.Ifcharge + entity.Charge)
 				doc.DownOrUp = v.State
 				if err := partner.DocsUpdate(doc); err == nil {
 					actualTotal++

二进制
rpc/partnerlib/partner.exe


二进制
rpc/stdlib/stdlib.exe


+ 2 - 2
services/model/stdlib.go

@@ -31,8 +31,8 @@ type Doc struct {
 	PreviewImgId string `json:"previewImgId" gorm:"column:previewImgId"`
 	//PreviewImgUrl   string    `json:"preview_img_url" gorm:"column:previewImgUrl"`
 	EncryptionLevel int       `json:"encryptionLevel" gorm:"column:encryptionLevel"` //
-	Source          int       `json:"source" gorm:"column:source"`                   //
-	ProductType     int       `json:"productType" gorm:"column:productType"`         //分类
+	Source          int64     `json:"source" gorm:"column:source"`                   //
+	ProductType     int64     `json:"productType" gorm:"column:productType"`         //分类
 	UpdateDate      time.Time `json:"updateDate" gorm:"column:updateDate"`
 }