chuweiqiang vor 1 Jahr
Ursprung
Commit
04c2fc0da3
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 2 0
      application/api/controller/Books.php
  2. 2 0
      application/api/controller/User.php

+ 2 - 0
application/api/controller/Books.php

@@ -214,6 +214,8 @@ class Books extends Api
 //                    unset($lists[$k]);
                 }
             }
+        }else{
+            $listss = $lists;
         }
         $this->success('操作成功',$listss);
     }

+ 2 - 0
application/api/controller/User.php

@@ -350,6 +350,8 @@ class User extends Api
     }
 
     public function getUserinfo(){
+        $userinfo = $this->auth->getUserinfo();
+        $userinfo['phone_r'] =  preg_match("/^1[3-9]{1}\d{9}$/", $username) ? substr_replace($username, '****', 3, 4);
         return json($this->auth->getUserinfo());
     }
 }