TASK:cloud;
This commit is contained in:
@@ -3949,13 +3949,16 @@ public class PythonService {
|
|||||||
// accessPythonPort,
|
// accessPythonPort,
|
||||||
// userHolder.getId(),
|
// userHolder.getId(),
|
||||||
// category);
|
// category);
|
||||||
String url = String.format("%s:%s/api/recommend/%d/%s/1",
|
String brandIdParam = (brandId != null) ? "brandId=" + brandId : "";
|
||||||
|
String brandScaleParam = (brandScale != null) ? "&brandScale=" + String.format("%.2f", brandScale) : "";
|
||||||
|
|
||||||
|
String url = String.format("%s:%s/api/recommend/%d/%s/1?%s%s",
|
||||||
"http://18.167.251.121",
|
"http://18.167.251.121",
|
||||||
"9994",
|
"9994",
|
||||||
userHolder.getId(),
|
userHolder.getId(),
|
||||||
category,
|
category,
|
||||||
brandId,
|
brandIdParam,
|
||||||
brandScale);
|
brandScaleParam);
|
||||||
|
|
||||||
log.info("Recommendation request URL: {}", url);
|
log.info("Recommendation request URL: {}", url);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user