|
@@ -14,8 +14,8 @@ class InteractionController extends Controller
|
|
* @apiGroup Interaction
|
|
* @apiGroup Interaction
|
|
* @apiPermission Passport
|
|
* @apiPermission Passport
|
|
* @apiVersion 0.1.0
|
|
* @apiVersion 0.1.0
|
|
- * @apiParam {int} dream_id 梦想ID
|
|
|
|
- * @apiParam {string} title 动态标题
|
|
|
|
|
|
+ * @apiParam {int} id 梦想ID
|
|
|
|
+ * @apiParam {string} title 互动标题
|
|
* @apiParam {array} pics[] 图片数组
|
|
* @apiParam {array} pics[] 图片数组
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
@@ -39,11 +39,11 @@ class InteractionController extends Controller
|
|
{
|
|
{
|
|
$validator = \Validator::make($request->all(),
|
|
$validator = \Validator::make($request->all(),
|
|
[
|
|
[
|
|
- 'dream_id' => 'required',
|
|
|
|
|
|
+ 'id' => 'required',
|
|
'title' => 'required',
|
|
'title' => 'required',
|
|
],
|
|
],
|
|
[
|
|
[
|
|
- 'dream_id.required' => '梦想ID不能为空',
|
|
|
|
|
|
+ 'id.required' => '梦想ID不能为空',
|
|
'title.required' => '动态标题不能为空',
|
|
'title.required' => '动态标题不能为空',
|
|
]
|
|
]
|
|
);
|
|
);
|
|
@@ -57,7 +57,7 @@ class InteractionController extends Controller
|
|
foreach ($pics as $k => $pic) {
|
|
foreach ($pics as $k => $pic) {
|
|
$data['pic'.($k+1)] = $pic;
|
|
$data['pic'.($k+1)] = $pic;
|
|
}
|
|
}
|
|
- $dream_id = $request->dream_id;
|
|
|
|
|
|
+ $dream_id = $request->id;
|
|
$title = $request->title;
|
|
$title = $request->title;
|
|
$data['dream_id'] = $dream_id;
|
|
$data['dream_id'] = $dream_id;
|
|
$data['title'] = $title;
|
|
$data['title'] = $title;
|