stanley-king 2 лет назад
Родитель
Сommit
4c201eb71c
2 измененных файлов с 10 добавлено и 0 удалено
  1. 2 0
      helper/refill/RefillBase.php
  2. 8 0
      test/TestRedis.php

+ 2 - 0
helper/refill/RefillBase.php

@@ -602,6 +602,8 @@ class RefillBase
 
             if(empty($official_sn)) return false;
 
+            $official_sn = strtoupper($official_sn);
+            
             if($card_type === mtopcard\ChinaMobileCard) {
                 if($start_with($official_sn,'0095')) {
                     return true;

+ 8 - 0
test/TestRedis.php

@@ -45,6 +45,14 @@ class TestRedis extends TestCase
         hello($val);
     }
 
+    public function testToUpper()
+    {
+
+        $official_sn = 'xxx';
+        $official_sn = strtoupper($official_sn);
+
+    }
+
     public function testRedisConfig()
     {
         $config = C('redis');