| xqd
@@ -113,6 +113,7 @@ class InteractionController extends Controller
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiParam {int} id 动态ID不存在
|
|
|
+ * @apiParam {int} to_user_id 发布动态的梦想者id
|
|
|
* @apiParam {int} [comment_user_id] //已经评论者id
|
|
|
* @apiParam {string} content 内容不能为空
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -160,10 +161,10 @@ class InteractionController extends Controller
|
|
|
// $data['to_user_id'] = InteractionInfo::find($request->id)->dream->user_id;
|
|
|
// $data['to_user_avatar'] = InteractionInfo::find($request->id)->dream->user_avatar;
|
|
|
// $data['to_user_nickname'] = InteractionInfo::find($request->id)->dream->user_nickname;
|
|
|
- if (!empty($request->input('comment_user_id'))) {
|
|
|
- $to_user = UserInfoModel::find($request->input('comment_user_id'));
|
|
|
+ if (!empty($request->input('to_user_id'))) {
|
|
|
+ $to_user = UserInfoModel::find($request->input('to_user_id'));
|
|
|
if (!empty($to_user)){
|
|
|
- $data['to_user_id'] = $request->input('comment_user_id');
|
|
|
+ $data['to_user_id'] = $request->input('to_user_id');
|
|
|
$data['to_user_avatar'] = $to_user->avatar;
|
|
|
$data['to_user_nickname'] = $to_user->nickname;
|
|
|
//点击去看看
|