dever 3 years ago
parent
commit
d964938ea9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      service/bill/lib/Cash.php

+ 3 - 0
service/bill/lib/Cash.php

@@ -8,6 +8,9 @@ class Cash
 {
     public function up($mid, $type, $cash, $role, $type_id, $desc, $status)
     {
+        if ($cash == 0) {
+            return;
+        }
         $member = Dever::db('agent/member')->find(array('id' => $mid, 'clear' => true));
         if ($member['status'] <= 2) {
         	$where['mid'] = $mid;