Pārlūkot izejas kodu

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

chenxiqiang 6 gadus atpakaļ
vecāks
revīzija
5ab9472477

+ 3
- 0
manage-server/app/Http/Controllers/HomePageController.php Parādīt failu

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

Loading…
Atcelt
Saglabāt