Jelajahi Sumber

Merge branch 'feature_20240722_add_log' of algorithm/ad-engine into master

zhaohaipeng 3 bulan lalu
induk
melakukan
502b91c225

+ 15 - 2
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/predict/model/threshold/RandomPredict673Model.java

@@ -1,5 +1,6 @@
 package com.tzld.piaoquan.ad.engine.service.predict.model.threshold;
 
+import com.alibaba.fastjson.JSONObject;
 import com.tzld.piaoquan.ad.engine.commons.util.JSONUtils;
 import com.tzld.piaoquan.ad.engine.service.predict.container.RandWContainer;
 import com.tzld.piaoquan.ad.engine.service.predict.param.ThresholdPredictModelParam;
@@ -65,8 +66,20 @@ public class RandomPredict673Model extends ThresholdPredictModel {
         result.put("threshold", threshold);
         result.put("model", this.initName());
 
-        log.info("广告跳出选择 -- 673实验结果: {}, 参数: {}, {}, {}, {}",
-                JSONUtils.toJson(result), appType, modelParam.getMid(), abParamKey, thresholdParamKey);
+        JSONObject logJson = new JSONObject();
+        logJson.putAll(result);
+        logJson.put("mid", modelParam.getMid());
+        logJson.put("appType", appType);
+        logJson.put("expId", "673");
+        logJson.put("userExternalSource", modelParam.getUserExternalSource());
+        logJson.put("shareType", modelParam.getUserExtraFuture("shareType").toString());
+        logJson.put("shareLayer", modelParam.getShareLayer());
+        logJson.put("thresholdParamKey", thresholdParamKey);
+        logJson.put("adPlatformType", modelParam.getAdPlatformType());
+
+        log.info("广告跳出选择 -- 673实验结果: {}, 参数: {}",
+                JSONUtils.toJson(result), logJson.toJSONString());
+
 
         return result;
     }