|
@@ -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([
|