From 3b2048b4496f5312f46ca61389d45dfb2baf1f14 Mon Sep 17 00:00:00 2001 From: Administrator <1269936630@qq.com> Date: Wed, 17 Jun 2026 13:41:52 +0800 Subject: [PATCH] =?UTF-8?q?/task/setTaskBody=20=E5=B0=86book=5Fname?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=EF=BC=8C=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=80=E8=B5=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 2 +- service/process.go | 6 ++++-- service/product.go | 9 ++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config.yaml b/config.yaml index 7918c25..c861bcd 100644 --- a/config.yaml +++ b/config.yaml @@ -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 \ No newline at end of file diff --git a/service/process.go b/service/process.go index 53e4579..c851312 100644 --- a/service/process.go +++ b/service/process.go @@ -4005,7 +4005,8 @@ func (s *ProcessService) syncProductsToExternal(receivingOrderID, waveTaskID, us bodyData := map[string]interface{}{ "book_info": map[string]interface{}{ - "isbn": group.product.Barcode, + "isbn": group.product.Barcode, + "book_name": group.product.Name, "image_object": map[string]interface{}{ "carousel_url_array": group.imgList, }, @@ -4061,7 +4062,8 @@ func (s *ProcessService) syncProductsToExternal(receivingOrderID, waveTaskID, us bodyData := map[string]interface{}{ "book_info": map[string]interface{}{ - "isbn": isbn, + "isbn": isbn, + "book_name": product.Name, "image_object": map[string]interface{}{ "carousel_url_array": imgList, }, diff --git a/service/product.go b/service/product.go index 6534350..b32f4af 100644 --- a/service/product.go +++ b/service/product.go @@ -1504,7 +1504,8 @@ func (s *ProductService) batchPushProductBody(db *gorm.DB, outTask models.OutTas bodyData := map[string]interface{}{ "book_info": map[string]interface{}{ - "isbn": isbn, + "isbn": isbn, + "book_name": product.Name, "image_object": map[string]interface{}{ "carousel_url_array": imgList, }, @@ -1686,7 +1687,8 @@ func (s *ProductService) syncPriceToExternalTaskWithOptionalWave(outTask models. bodyData := map[string]interface{}{ "book_info": map[string]interface{}{ - "isbn": isbn, + "isbn": isbn, + "book_name": product.Name, "image_object": map[string]interface{}{ "carousel_url_array": imgList, }, @@ -1846,7 +1848,8 @@ func (s *ProductService) syncPriceToExternalTask(outTask models.OutTask, product bodyData := map[string]interface{}{ "book_info": map[string]interface{}{ - "isbn": isbn, + "isbn": isbn, + "book_name": product.Name, "image_object": map[string]interface{}{ "carousel_url_array": imgList, },