Explorar el Código

专用储值卡

gorden hace 3 meses
padre
commit
f61d5dda5e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/admin/service/coupon/CardService.php

+ 1 - 1
app/admin/service/coupon/CardService.php

@@ -59,7 +59,7 @@ class CardService
             $oldCardId = $lastCard->card_id;
             $oldCardId = ltrim($oldCardId, $demandConfig['prefix']);
             $oldCardId = rtrim($oldCardId, $demandConfig['suffix']);
-            $oldCardId = ltrim($oldCardId, $demandConfig['rand']);
+            $oldCardId = ltrim($oldCardId, $rand);
             $number = intval($oldCardId) + 1;
         } else {
             $number = $begin;