shish 1 mese fa
parent
commit
62f655dddf
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      console/controllers/ClearController.php

+ 3 - 2
console/controllers/ClearController.php

@@ -34,6 +34,7 @@ class ClearController extends Controller
                 $status = $clear['status'] ?? 1;
                 $clearId = $clear['id'] ?? 0;
                 $clearPrice = $clear['actPrice'] ?? 0;
+                $addTime = $clear['addTime'] ?? '';
                 $clearPrice = floatval($clearPrice);
                 if ($status == 2) {
                     $relateList = OrderCgClearClass::getAllByCondition(['clearId' => $clearId], null, '*');
@@ -44,8 +45,8 @@ class ClearController extends Controller
                             $cgInfo = GhsClass::getById($cgId, true);
                             $remainDebtPrice = $cgInfo->remainDebtPrice ?? 0;
                             $remainDebtPrice = floatval($remainDebtPrice);
-                            if ($remainDebtPrice>0 && $clearPrice == $remainDebtPrice) {
-                                echo "clearId {$clearId} cgId {$cgId} remainDebtPrice {$remainDebtPrice} 需要清除 \n";
+                            if ($remainDebtPrice > 0 && $clearPrice == $remainDebtPrice) {
+                                echo "clearId {$clearId} cgId {$cgId} remainDebtPrice {$remainDebtPrice} {$addTime} 需要清除 \n";
                             }
                         }
                     }