Bladeren bron

feat:新增字段canShowRedPacket(是否显示今日收益/历史收益)

hidewnd 2 weken geleden
bovenliggende
commit
a3aea6ce12

+ 3 - 0
yt-common/src/main/java/com/ytpm/agent/param/AppParam.java

@@ -96,4 +96,7 @@ public class AppParam {
 
     @ApiModelProperty("是否展示真实小说名称")
     private Integer canShowRealNovelName;
+
+    @ApiModelProperty("是否显示今日收益/历史收益")
+    private Integer canShowRedPacket;
 }

+ 2 - 0
yt-common/src/main/java/com/ytpm/agent/view/AgentAppView.java

@@ -192,4 +192,6 @@ public class AgentAppView {
     @ApiModelProperty("是否展示真实小说名称")
     private Integer canShowRealNovelName;
 
+    @ApiModelProperty("是否显示今日收益/历史收益")
+    private Integer canShowRedPacket;
 }

+ 3 - 0
yt-common/src/main/java/com/ytpm/app/model/YtAppDefaultConfig.java

@@ -89,6 +89,9 @@ public class YtAppDefaultConfig {
     @ApiModelProperty("是否展示真实小说名称")
     private Integer canShowRealNovelName;
 
+    @ApiModelProperty("是否显示今日收益/历史收益")
+    private Integer canShowRedPacket;
+
     public YtAppDefaultConfig(Object o, String appName, String wxAppId, String wxSecret, String appId, String appKey, int appType,String ditchId) {
         this.configId = Objects.isNull(o)?null: Integer.parseInt(o.toString());
         this.configName = appName;

+ 3 - 0
yt-common/src/main/java/com/ytpm/app/view/WxDefaultConfig.java

@@ -84,4 +84,7 @@ public class WxDefaultConfig {
 
     @ApiModelProperty("是否展示真实小说名称")
     private Integer canShowRealNovelName;
+
+    @ApiModelProperty("是否显示今日收益/历史收益")
+    private Integer canShowRedPacket;
 }

+ 7 - 1
yt-middle/middle-platform/src/main/java/com/ytpm/middle/service/impl/ApkServiceImpl.java

@@ -144,6 +144,10 @@ public class ApkServiceImpl implements ApkService {
                 view.setBrushTip(config.getBrushTip());
                 view.setFlowIntervalTime(config.getFlowIntervalTime());
                 view.setCanAllowAutoRefresh(config.getCanAllowAutoRefresh());
+                view.setRevenueDisplayRate(config.getRevenueDisplayRate());
+                view.setUnlockTimer(config.getUnlockTimer());
+                view.setCanShowRealNovelName(config.getCanShowRealNovelName());
+                view.setCanShowRedPacket(config.getCanShowRedPacket());
             }
             if(CharSequenceUtil.isBlank(view.getApkUrl()))continue;
             String substring = view.getApkUrl().substring(view.getApkUrl().lastIndexOf("/")+1).toLowerCase(Locale.ENGLISH);
@@ -214,8 +218,10 @@ public class ApkServiceImpl implements ApkService {
         config.setCanCacheVideo(param.getCanCacheVideo());
         config.setStartWaitTime(param.getStartWaitTime());
         config.setCanAllowAutoRefresh(param.getCanAllowAutoRefresh());
+        config.setUnlockTimer(param.getUnlockTimer());
         config.setCanShowRealNovelName(param.getCanShowRealNovelName());
-        feignInvoker.invoke(app.getServiceName(), "updateAppConfig",config);
+        config.setCanShowRedPacket(param.getCanShowRedPacket());
+        feignInvoker.invoke(app.getServiceName(), "updateAppConfig", config);
     }
 
     /**

+ 8 - 3
yt-novel/yt-novel-service/src/main/resources/mapper/AppUserMapper.xml

@@ -175,6 +175,9 @@
             <if test="canShowRealNovelName != null">
                 can_show_real_novel_name = #{canShowRealNovelName},
             </if>
+            <if test="canShowRedPacket != null">
+                can_show_red_packet = #{canShowRedPacket},
+            </if>
             <if test="revenueDisplayRate != null">
                 revenue_display_rate = #{revenueDisplayRate}
             </if>
@@ -466,7 +469,8 @@
             can_use_root, can_use_adb, can_use_float, can_accumulation,
             ditch_id, power_wait_time, interstitial_interval_time,
             low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
-            can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer,can_show_real_novel_name
+            can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer,
+            can_show_real_novel_name, can_show_red_packet
         from yt_app_default_config
         where app_type = #{appType}
     </select>
@@ -477,7 +481,8 @@
             taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
             ditch_id, power_wait_time, interstitial_interval_time,
             low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
-            can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer,can_show_real_novel_name
+            can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer,
+            can_show_real_novel_name, can_show_red_packet
         from yt_app_default_config
         where app_id = #{appId}
     </select>
@@ -502,7 +507,7 @@
         taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,can_simulator,
         ditch_id, power_wait_time, interstitial_interval_time, low_value_tip, brush_tip,
         flow_interval_time,task_limit_tip,start_wait_time,can_cache_video,can_allow_auto_refresh,
-        revenue_display_rate,unlock_timer,can_show_real_novel_name
+        revenue_display_rate,unlock_timer,can_show_real_novel_name,can_show_red_packet
         from yt_app_default_config
         where app_id in
         <foreach collection="appIds.split(',')" item="item" separator="," open="(" close=")">

+ 6 - 3
yt-question/yt-question-service/src/main/resources/mapper/AppUserMapper.xml

@@ -453,6 +453,9 @@
             <if test="canAllowAutoRefresh != null">
                 can_allow_auto_refresh = #{canAllowAutoRefresh},
             </if>
+            <if test="canShowRedPacket != null">
+                can_show_red_packet = #{canShowRedPacket},
+            </if>
             <if test="revenueDisplayRate != null">
                 revenue_display_rate = #{revenueDisplayRate}
             </if>
@@ -470,7 +473,7 @@
             can_use_root, can_use_adb, can_use_float, can_accumulation,
             ditch_id, power_wait_time, interstitial_interval_time,
             low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
-            can_cache_video,can_allow_auto_refresh, revenue_display_rate
+            can_cache_video,can_allow_auto_refresh, revenue_display_rate, can_show_red_packet
         from yt_app_default_config
         where app_type = #{appType}
     </select>
@@ -481,7 +484,7 @@
             taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
             ditch_id, power_wait_time, interstitial_interval_time,
             low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
-            can_cache_video,can_allow_auto_refresh, revenue_display_rate
+            can_cache_video,can_allow_auto_refresh, revenue_display_rate, can_show_red_packet
         from yt_app_default_config
         where app_id = #{appId}
     </select>
@@ -492,7 +495,7 @@
             taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
             ditch_id, power_wait_time, interstitial_interval_time,
             low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
-            can_cache_video,can_allow_auto_refresh, revenue_display_rate
+            can_cache_video,can_allow_auto_refresh, revenue_display_rate, can_show_red_packet
         from yt_app_default_config
         where app_id in
         <foreach collection="appIds.split(',')" item="item" separator="," open="(" close=")">