shish 5 maanden geleden
bovenliggende
commit
f6920ead2d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      console/controllers/TestController.php

+ 1 - 1
console/controllers/TestController.php

@@ -50,10 +50,10 @@ class TestController extends Controller
                 $staffList = ShopAdminClass::getAllByCondition(['mainId' => $mainId], null, 'id,adminId,mobile', null, true);
                 if (!empty($staffList)) {
                     foreach ($staffList as $staff) {
-                        echo $staff->id;die;
                         $adminId = $staff->adminId;
                         $mobile = $staff->mobile;
                         AdminClass::updateById($adminId, ['mobile' => $mobile]);
+                        echo $mobile.' '.$staff->id;die;
                     }
                 }
             }