Przeglądaj źródła

飞书推送 增加起量消耗提示

zhaotx 1 rok temu
rodzic
commit
932ba020e8

+ 4 - 2
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/ReportsAdPushServiceImpl.java

@@ -134,14 +134,16 @@ public class ReportsAdPushServiceImpl implements IReportsAdPushService {
 //            int movieSource = m.getIntValue("movie_source");
 //            String movieNameColor = movieSource==2?"grey":"blue";
             JSONObject obj = new JSONObject();
-            obj.put("movieName", m.getString("movie_name"));
+
 //            obj.put("movieNameColor", movieNameColor);
 //            obj.put("endAmount", m.get("water_end_amount"));
 //            obj.put("movieRealRoi", m.get("real_roi"));
             Double hourCostAmount = m.getDoubleValue("hour_cost_amount");
             if (hourCostAmount >= 40000){
-                obj.put("hourCostAmount", "<font color='red'>"+hourCostAmount+"(起量)</font>");
+                obj.put("movieName", "<font color='red'>"+m.getString("movie_name")+"(起量)</font>");
+                obj.put("hourCostAmount", "<font color='red'>"+hourCostAmount+"</font>");
             }else {
+                obj.put("movieName", m.getString("movie_name"));
                 obj.put("hourCostAmount", ""+hourCostAmount);
             }