Sfoglia il codice sorgente

将token过期时间设置为24小时

chenxiqiang 6 anni fa
parent
commit
5ab9472477

+ 3
- 0
manage-server/app/Http/Controllers/HomePageController.php Vedi File

@@ -51,6 +51,7 @@ class HomePageController extends Controller
51 51
             "status" => 0,
52 52
             "data" => [
53 53
                 "content" => $homePage->content,
54
+                "introduce" => $homePage->bottom_introduce,
54 55
                 "photo" => $homePage->photo,
55 56
             ]
56 57
         ]);
@@ -60,11 +61,13 @@ class HomePageController extends Controller
60 61
 
61 62
     public function bottom(Request $request) {
62 63
         $content = $request->input("content");
64
+        $introduce = $request->input("introduce");
63 65
         $photo = $request->input("photo");
64 66
         if($content) {
65 67
             $homePage = HomePage::find(1);
66 68
             if($homePage) {
67 69
                 $homePage->content = $content;
70
+                $homePage->bottom_introduce = $introduce;
68 71
                 $homePage->photo = $photo;
69 72
                 $homePage->save();
70 73
                 return Response()->json([

Loading…
Annulla
Salva