Authored by qinchao

监控对象修改

... ... @@ -51,7 +51,7 @@ public class YohoSearchJavaApiHandler extends IJavaApiHadnler {
if(200!=code){
errorMsg="请求异常返回code = "+code;
}else{
errorMsg = handleYohoSearch(jsonRep);
errorMsg = handleYohoSearch(jsonRep,javaApiStatics);
}
}
... ... @@ -66,7 +66,7 @@ public class YohoSearchJavaApiHandler extends IJavaApiHadnler {
}
}
private String handleYohoSearch(JSONObject jo){
private String handleYohoSearch(JSONObject jo,JavaApiStatics javaApiStatics){
String errorMsg="";
JSONObject jodata=jo.getJSONObject("data");
if(jodata==null){
... ... @@ -142,8 +142,8 @@ public class YohoSearchJavaApiHandler extends IJavaApiHadnler {
}
}
log.info("YohoSearchApiTask url {} ,product_skn {} , product_name {} , default_images {} , sales_price {}"
, product_skn, product_name, default_images, sales_price);
log.info("YohoSearchApiTask url {} ,product_skn {} , product_name {} , default_images {} , sales_price {}",
javaApiStatics.getJavaApiInfo().getApiUrl(), product_skn, product_name, default_images, sales_price);
if(pass_all_product_skn&&pass_all_product_name&&pass_all_product_images&&pass_all_product_price){
//某一项全部都符合条件,就不用再继续检查了
... ...