rabin 3 lat temu
rodzic
commit
3f3a9f3c90
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      service/bill/lib/Cron.php

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

@@ -578,7 +578,8 @@ class Cron
                 }
 
                 foreach ($member as $k1 => $v1) {
-                    $vinfo = Dever::db('agent/order')->select(array('parent_mid' => $v1['mid'], 'role' => 8));
+                    $vinfo = Dever::db('agent/member')->find($v1['mid']);
+                    //$vinfo = Dever::db('agent/order')->select(array('parent_mid' => $v1['mid'], 'role' => 8));
                     if ($vinfo) {
                         foreach ($vinfo as $v2) {
                             if ($v2['prize_type'] == 1) {