shish 5 месяцев назад
Родитель
Сommit
c8d9c5d630
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      console/controllers/TestController.php

+ 3 - 0
console/controllers/TestController.php

@@ -54,11 +54,14 @@ class TestController extends Controller
         foreach ($query->batch(1000) as $allUser) {
             if (!empty($allUser)) {
                 foreach ($allUser as $user) {
+                    print_r($user);
                     $userId = $user['id'];
                     $mobile = $user['mobile'];
                     $customList = CustomClass::getAllByCondition(['userId' => $userId], null, 'id,mobile,userId');
                     if (!empty($customList)) {
                         foreach ($customList as $custom) {
+                            print_r($custom);
+                            die;
                             $userMobile = $custom['mobile'];
                             if (!empty($userMobile) && $userMobile != $mobile) {
                                 echo $userId . ' ' . $mobile . "\n";