浏览代码

Merge branch 'feature_gufengshou_20240306_random_predict_key_changed' into pre-master

gufengshou1 1 年之前
父节点
当前提交
dfb4ee5718

+ 1 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/predict/model/threshold/RandomPredictModel.java

@@ -33,7 +33,7 @@ public class RandomPredictModel extends ThresholdPredictModel {
         hash=hash<0?-hash:hash;
         double score=(hash+ RandWContainer.getRandW())%100/100d;
         double threshold=Double.parseDouble(
-                modelParam.getExtraParam().getOrDefault(modelParam.getAppType()+"_"+modelParam.getUserExtraFuture("shareType").toString(),-1
+                modelParam.getExtraParam().getOrDefault(modelParam.getAppType()+"_"+modelParam.getUserExtraFuture("shareType").toString().replace("return","").replace("mids",""),-1
                 ).toString());
         if(threshold<0d){
             threshold=Double.parseDouble(