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, },