Просмотр исходного кода

二维码进粉阈值判断从原来的百分之五十到百分之七十

lqc 4 лет назад
Родитель
Сommit
08f8bce6e6

+ 1 - 1
src/main/java/com/mokamrp/privates/controller/pangu/FosterwxFlowListController.java

@@ -66,7 +66,7 @@ public class FosterwxFlowListController extends BaseController<FosterwxFlowList>
         Integer maxFans = Integer.valueOf(fosterwxMobilePool.getMaxFans());
 
         // 查看是否超过百分之五十 并且 所属组别不是游戏导粉类型
-        if (fosterwxFlowList.getBusFans() > maxFans / 2.0 && 2 != fosterwxMobilePool.getIncomeFansType()) {
+        if (fosterwxFlowList.getBusFans() > maxFans * 7 / 10.0 && 2 != fosterwxMobilePool.getIncomeFansType()) {
             // 超过
             // 更新
             // 设置流量位置

+ 6 - 0
src/test/java/com/mokamrp/Tests.java

@@ -65,4 +65,10 @@ public class Tests {
 
 
     }
+
+    @Test
+    public void test5() {
+        Integer count = 12;
+        System.out.println(count * 7 / 10.0);
+    }
 }