shish 4 lat temu
rodzic
commit
e8bd6a0119
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      console/controllers/CustomController.php

+ 2 - 4
console/controllers/CustomController.php

@@ -45,7 +45,7 @@ class CustomController extends Controller
             $shopId = $shop->id ?? 0;
             $shopName = $shop->shopName ?? '';
             $merchantName = $shop->merchantName ?? '';
-            echo "{$merchantName}-{$shopName}的客户: \n";
+            echo "{$merchantName}-{$shopName} \n\n\n\n";
             $query = new \yii\db\Query();
 
             $query->from(Custom::tableName());
@@ -56,9 +56,7 @@ class CustomController extends Controller
             foreach ($query->batch(50) as $customList) {
                 if (!empty($customList)) {
                     foreach ($customList as $custom) {
-                        $customName = $custom['name'] ?? '';
-                        echo $customName . "\n";
-                        continue;
+                        //$customName = $custom['name'] ?? '';
                         $customId = $custom['id'] ?? 0;
                         $where = ['customId' => $customId, 'debt' => 1];
                         $orderList = OrderClass::getAllByCondition($where, 'addTime DESC', '*');