@@ -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) {