Browse Source

Fixed 修复随机链接收益参数

程旭源 9 months ago
parent
commit
0d42105009
1 changed files with 8 additions and 2 deletions
  1. 8 2
      application/api/controller/Index.php

+ 8 - 2
application/api/controller/Index.php

@@ -107,9 +107,15 @@ class Index extends Api
                     $unit = 1;
                     for($i=1;; $i++) {
                         $unit = bcpow(10, $i, 10);
-                        if (bccomp("1", bcmul($val['minincome'].'', $unit, 10), 10) !== 1) {
-                            break;
+                        $tmp = bcmul($val['minincome'], $unit, 10);
+                        if (floor($tmp) < $tmp ) {
+                            continue;
                         }
+                        break;
+
+//                        if (bccomp("1", bcmul($val['minincome'].'', $unit, 10), 10) !== 1) {
+//                            break;
+//                        }
                     }