544782275@qq.com há 3 anos atrás
pai
commit
3001fc963e
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      application/api/controller/Login.php

+ 3 - 0
application/api/controller/Login.php

@@ -346,6 +346,9 @@ class Login extends Base
         $jwt = JWT::encode($token, $key);
         return $jwt;
     }
+    public function privacy_policy(){
+        $this->success('获取成功',htmlspecialchars_decode(sysconf('privacy_policy')));
+    }
     public function  get_token(){
         $uid = input('uid',500);
         $token = $this->create_jwt($uid);