Browse Source

专用储值卡

gorden 3 months ago
parent
commit
f61d5dda5e
1 changed files with 1 additions and 1 deletions
  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;