rabin 3 years ago
parent
commit
65e6fe7929
1 changed files with 5 additions and 2 deletions
  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) {