shish 2 месяцев назад
Родитель
Сommit
b270084fea
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      console/controllers/ClearController.php

+ 1 - 1
console/controllers/ClearController.php

@@ -44,7 +44,7 @@ class ClearController extends Controller
                             $cgInfo = GhsClass::getById($cgId, true);
                             $remainDebtPrice = $cgInfo->remainDebtPrice ?? 0;
                             $remainDebtPrice = floatval($remainDebtPrice);
-                            if ($clearPrice == $remainDebtPrice) {
+                            if ($remainDebtPrice>0 && $clearPrice == $remainDebtPrice) {
                                 echo "clearId {$clearId} cgId {$cgId} remainDebtPrice {$remainDebtPrice} 需要清除 \n";
                             }
                         }