Explorar o código

截取手机号

bianjunhui %!s(int64=2) %!d(string=hai) anos
pai
achega
dc2cecbe4d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/mod/didsms.php

+ 1 - 1
api/mod/didsms.php

@@ -56,7 +56,7 @@ class ONUService{
         $frist =(int)substr($mobile, 0, 1 );
         $lenth=strlen($mobile);
         if($lenth==11&&$frist==1){//例:14696305087
-            $mobile =substr($mobile , 2 , 10);
+            $mobile =substr($mobile , 1 , 10);
         }
         return $mobile;
     }