rabin 3 years ago
parent
commit
01fc9321f7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      service/option/src/My.php

+ 2 - 1
service/option/src/My.php

@@ -62,9 +62,10 @@ class My extends Core
                 $total += $v['daijiaofu'];
                 $this->data['cash'][$k]['total'] = number_format($v['jiaofu'] + $v['fafang'] + $v['duifu'], 2, '.', '');
                 if ($this->data['cash'][$k]['total'] <= 0) {
-                    // unset($this->data['cash'][$k]);
+                    unset($this->data['cash'][$k]);
                 }
             }
+            $this->data['cash'] = array_slice($this->data['cash'], 0);
         }
 
         if ($agreement) {