|
@@ -354,10 +354,9 @@ object makedata_ad_31_originData_20250623 {
|
|
|
if (c1.containsKey("user_has_conver_1y") && c1.getInteger("user_has_conver_1y") != null) {
|
|
|
featureMap.put("user_has_conver_1y", c1.getInteger("user_has_conver_1y"))
|
|
|
}
|
|
|
- val h1: JSONObject = if (!mateFeature.containsKey("alg_mid_feature_adver_action")) new JSONObject() else
|
|
|
- mateFeature.getJSONObject("alg_mid_feature_adver_action")
|
|
|
- val h2: JSONObject = if (!mateFeature.containsKey("alg_mid_feature_sku_action")) new JSONObject() else
|
|
|
- mateFeature.getJSONObject("alg_mid_feature_sku_action")
|
|
|
+
|
|
|
+ val h1: JSONObject = if (record.isNull("h1_feature")) new JSONObject() else JSON.parseObject(record.getString("h1_feature"))
|
|
|
+ val h2: JSONObject = if (record.isNull("h2_feature")) new JSONObject() else JSON.parseObject(record.getString("h2_feature"))
|
|
|
|
|
|
// 定义时间维度和对应的前缀
|
|
|
val timeDimensions = Seq("3d", "7d", "30d")
|