rabin 3 年之前
父节点
当前提交
067f2d7ca0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {