rabin 3 年之前
父节点
当前提交
65e6fe7929
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      service/bill/lib/Cron.php

+ 5 - 2
service/bill/lib/Cron.php

@@ -581,9 +581,9 @@ class Cron
                     $vinfo = Dever::db('agent/member')->select(array('parent_mid' => $v1['mid'], 'role' => 8));
                     
                     $vinfo1 = Dever::db('agent/order')->select(array('parent_mid' => $v1['mid'], 'role' => 8));
-                    if ($v['id'] == 19) {
+                    if ($v['id'] == 19 && $vinfo) {
                         print_r($vinfo);
-                    print_r($vinfo1);die;
+                        print_r($vinfo1);
                     }
                     
                     if ($vinfo) {
@@ -596,6 +596,9 @@ class Cron
                         }
                     }
                 }
+                if ($v['id'] == 19) {
+                        print_r($out_member);die;
+                    }
 
                 $c_money = Dever::db('shop/buy_order')->getCashNum(array('type'=>1,'type_id'=>$v['id'],'start' => $start, 'end' => $end, 'status' => '3,4,5,6'));
                 if ($c_money) {