|
@@ -107,9 +107,15 @@ class Index extends Api
|
|
$unit = 1;
|
|
$unit = 1;
|
|
for($i=1;; $i++) {
|
|
for($i=1;; $i++) {
|
|
$unit = bcpow(10, $i, 10);
|
|
$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;
|
|
|
|
+// }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|