瀏覽代碼

截取手机号

bianjunhui 2 年之前
父節點
當前提交
dc2cecbe4d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }