xiaoyu 2 years ago
parent
commit
7eae5f5dad

+ 4 - 3
admin/control/provider.php

@@ -711,10 +711,11 @@ class providerControl extends SystemControl
             $available_total = 0;
             foreach ($data as $key => $value)
             {
-                if($value['available_predeposit'] > $remit_cfg['remit_money']) {
+                $remit = abs($value['available_predeposit'] - $remit_cfg['remit_money']);
+                if ($remit > 1000 && $value['available_predeposit'] < $remit_cfg['remit_money']) {
+                    $data[$key]['remit'] = $remit;
+                } else {
                     $data[$key]['remit'] = 0;
-                }else{
-                    $data[$key]['remit'] = abs($value['available_predeposit'] - $remit_cfg['remit_money']);
                 }
                 $available_total += $value['available_predeposit'];
             }

+ 4 - 1
admin/templates/default/provider.remit.php

@@ -107,8 +107,11 @@
                     total = math.add(math.bignumber(total),math.bignumber(value)).toNumber();
                 }
             }
-            
+            total = parseFloat(total);
             let total_chineseStr = convertCurrency(total);
+            let num = total % 1000;
+            total = total - num;
+
             total = numFormat(total);
             let total_text = total + '('+ total_chineseStr +')';
             $('#total').html(total_text)

+ 1 - 1
admin/templates/default/remit.config.php

@@ -22,7 +22,7 @@
             </tr>
             <tr class="noborder">
                 <td class="vatop rowform">小于<input type="text" value="<?php echo $output['config']['remit_money'] ?? 0;?>" name="remit_money" id="remit_money" class="txt">可回款</td>
-                <td class="vatop tips"></td>
+                <td class="vatop tips">(余额低于-5w打款,填写-50000)</td>
             </tr>
             <tr class="noborder">
                 <td colspan="2" class="required"><label class="validation" for="remit_max">单条记录最大金额:</label></td>