rabin 3 年之前
父节点
当前提交
23a7884513
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/agent/lib/Tool.php

+ 1 - 1
service/agent/lib/Tool.php

@@ -811,7 +811,7 @@ class Tool
             $ybody = $nbody = array();
             foreach ($data as $k => $v) {
                 $buy = Dever::db('shop/sell_order_goods')->getCashNum(array('goods_id' => $v['id'], 'start' => $start, 'end' => $end));
-                if ($buy) {
+                if ($buy && $buy['total']) {
                     $yes += 1;
                 } else {
                     $no += 1;