|
@@ -380,7 +380,7 @@ func (t CooperationService) GetTalentPerform(param *vo.TalentDataParam) (vo.Resu
|
|
|
var productMainPhoto entity.ProductPhoto
|
|
|
err11 := json.Unmarshal([]byte(sec.ProductSnap), &product)
|
|
|
err12 := json.Unmarshal([]byte(sec.ProductPhotoSnap), &productMainPhoto)
|
|
|
- if err11 != nil || err12 != nil {
|
|
|
+ if err11 == nil && err12 == nil {
|
|
|
perform.MainImage = productMainPhoto.PhotoUrl
|
|
|
perform.ProductName = product.ProductName
|
|
|
perform.Price = product.ProductPrice
|
|
@@ -406,7 +406,7 @@ func (t CooperationService) GetTalentPerform(param *vo.TalentDataParam) (vo.Resu
|
|
|
var productMainPhoto entity.ProductPhoto
|
|
|
err11 := json.Unmarshal([]byte(sec.ProductSnap), &product)
|
|
|
err12 := json.Unmarshal([]byte(sec.ProductPhotoSnap), &productMainPhoto)
|
|
|
- if err11 != nil || err12 != nil {
|
|
|
+ if err11 == nil && err12 == nil {
|
|
|
perform.MainImage = productMainPhoto.PhotoUrl
|
|
|
perform.ProductName = product.ProductName
|
|
|
perform.Price = product.ProductPrice
|
|
@@ -418,6 +418,7 @@ func (t CooperationService) GetTalentPerform(param *vo.TalentDataParam) (vo.Resu
|
|
|
}
|
|
|
talentDataParams = append(talentDataParams, &perform)
|
|
|
}
|
|
|
+ fmt.Println(talentDataParams)
|
|
|
} else if param.TaskType == 3 {
|
|
|
prjtasks, total3, err3 := dao.LocalLifeTaskInfoDao{}.GetLocalLifeInfoByTalentId(param.TalentId, param.Others, param.SortField, param.SortOrder, param.Page, param.PageSize, param.RelType, param.EnterpriseId, param.Platform)
|
|
|
total = total3
|
|
@@ -435,7 +436,7 @@ func (t CooperationService) GetTalentPerform(param *vo.TalentDataParam) (vo.Resu
|
|
|
var productMainPhoto entity.ProductPhoto
|
|
|
err11 := json.Unmarshal([]byte(sec.ProductSnap), &product)
|
|
|
err12 := json.Unmarshal([]byte(sec.ProductPhotoSnap), &productMainPhoto)
|
|
|
- if err11 != nil || err12 != nil {
|
|
|
+ if err11 == nil && err12 == nil {
|
|
|
perform.MainImage = productMainPhoto.PhotoUrl
|
|
|
perform.ProductName = product.ProductName
|
|
|
perform.Price = product.ProductPrice
|
|
@@ -491,7 +492,7 @@ func (t CooperationService) GetSupplierPerform(param *vo.SupplierDataParam) (vo.
|
|
|
var productMainPhoto entity.ProductPhoto
|
|
|
err11 := json.Unmarshal([]byte(project.ProductSnap), &product)
|
|
|
err12 := json.Unmarshal([]byte(project.ProductPhotoSnap), &productMainPhoto)
|
|
|
- if err11 != nil && err12 != nil {
|
|
|
+ if err11 == nil && err12 == nil {
|
|
|
perform.MainImage = productMainPhoto.PhotoUrl
|
|
|
perform.ProductName = product.ProductName
|
|
|
perform.Price = product.ProductPrice
|