rabin 2 years ago
parent
commit
067f2d7ca0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/cash/lib/Set.php

+ 1 - 1
app/cash/lib/Set.php

@@ -102,7 +102,7 @@ class Set
         if ($data) {
             Dever::db($table)->update(array('where_id' => $id, 'status' => 2));
 
-            if ($type == 'shop_sell') {
+            if ($type == 'shop_sell' && $data['cash'] > 0) {
                 $card = Dever::db('cash/order')->getCardAll(array('start'=>$data['start'],'end'=>$data['end'],'pay_type'=>2,'status'=>2,'type'=>1,'type_id'=>$data['shop_id'],'state'=>1));
                 $shop = Dever::db('shop/info')->find($data['shop_id']);
                 if ($card && $card['cash'] > 0) {