/task/setTaskBody 将book_name返回,相关文件一起修改

This commit is contained in:
Administrator 2026-06-17 13:41:52 +08:00
parent 38fdcf398e
commit 3b2048b449
3 changed files with 11 additions and 6 deletions

View File

@ -56,6 +56,6 @@ external_api:
es_update_book_url: "https://book.center.yushutx.com/api/es/updateBookFieldsByISBN"
# sync_task_url: "http://192.168.101.156:8080/task/create"
sync_task_url: "http://36.212.7.246:8283/task/create"
# sync_task_body_url: "http://192.168.101.156:8080/task/setTaskBody"
# sync_task_body_url: "http://192.168.101.156:8080./task/setTaskBody"
sync_task_body_url: "http://36.212.7.246:8283/task/setTaskBody"
timeout: 30

View File

@ -4006,6 +4006,7 @@ func (s *ProcessService) syncProductsToExternal(receivingOrderID, waveTaskID, us
bodyData := map[string]interface{}{
"book_info": map[string]interface{}{
"isbn": group.product.Barcode,
"book_name": group.product.Name,
"image_object": map[string]interface{}{
"carousel_url_array": group.imgList,
},
@ -4062,6 +4063,7 @@ func (s *ProcessService) syncProductsToExternal(receivingOrderID, waveTaskID, us
bodyData := map[string]interface{}{
"book_info": map[string]interface{}{
"isbn": isbn,
"book_name": product.Name,
"image_object": map[string]interface{}{
"carousel_url_array": imgList,
},

View File

@ -1505,6 +1505,7 @@ func (s *ProductService) batchPushProductBody(db *gorm.DB, outTask models.OutTas
bodyData := map[string]interface{}{
"book_info": map[string]interface{}{
"isbn": isbn,
"book_name": product.Name,
"image_object": map[string]interface{}{
"carousel_url_array": imgList,
},
@ -1687,6 +1688,7 @@ func (s *ProductService) syncPriceToExternalTaskWithOptionalWave(outTask models.
bodyData := map[string]interface{}{
"book_info": map[string]interface{}{
"isbn": isbn,
"book_name": product.Name,
"image_object": map[string]interface{}{
"carousel_url_array": imgList,
},
@ -1847,6 +1849,7 @@ func (s *ProductService) syncPriceToExternalTask(outTask models.OutTask, product
bodyData := map[string]interface{}{
"book_info": map[string]interface{}{
"isbn": isbn,
"book_name": product.Name,
"image_object": map[string]interface{}{
"carousel_url_array": imgList,
},