Mike hace 7 años
padre
commit
8718f765f2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      server/app/Http/Controllers/Api/V1/AuthController.php

+ 2 - 1
server/app/Http/Controllers/Api/V1/AuthController.php

xqd
@@ -32,7 +32,8 @@ class AuthController extends Controller
 
     public function info(Request $request){
         if($request->type==1){
-            return $this->api('用户隐私');
+            $data = BaseSettingsModel::where('category','miaomiao')->select('key','value')->first();
+            return $this->api($data);
         }else if($request->type==2){
             $data = BaseSettingsModel::where('category','miaomiao')->select('key','value')->first();
             return $this->api($data);