| xqd
@@ -161,7 +161,7 @@ class InteractionController extends Controller
|
|
|
$content = $request->content;
|
|
|
$is_read = 1;
|
|
|
$data = compact('user_id','user_avatar','user_nickname','interaction_id','content','is_read');*/
|
|
|
-
|
|
|
+ $toid = $request->input('to_user_id');
|
|
|
$dream_id = InteractionInfo::find($request->id)->dream_id;
|
|
|
// $data['to_user_avatar'] = InteractionInfo::find($request->id)->dream->user_avatar;
|
|
|
// $data['to_user_nickname'] = InteractionInfo::find($request->id)->dream->user_nickname;
|
| xqd
@@ -173,8 +173,6 @@ class InteractionController extends Controller
|
|
|
$data['to_user_nickname'] = $to_user->nickname;
|
|
|
//点击去看看
|
|
|
$message = ""."<span style='color: #00c3da'>[$user->nickname]</span> ".'在你的互动上留言啦!点击去看看';
|
|
|
- $this->jPush($user->nickname."在你的互动上留言啦!点击去看看",'',$data['to_user_id']);
|
|
|
-
|
|
|
$info = [
|
|
|
'to_user_id' => $data['to_user_id'],
|
|
|
'message' => $message,
|
| xqd
@@ -185,11 +183,10 @@ class InteractionController extends Controller
|
|
|
'interaction_id' => $request->input('id'),
|
|
|
];
|
|
|
SystemInfoModel::create($info);
|
|
|
-
|
|
|
-// 长连接
|
|
|
- $this->jPush($message,'',$data['to_user_id']);
|
|
|
}
|
|
|
}
|
|
|
+ $this->jPush($user->nickname."在你的互动上留言啦!点击去看看",'',$toid);
|
|
|
+
|
|
|
if (!empty($request->input('u_id'))) {
|
|
|
$message = ""."<span style='color: #00c3da'>[$user->nickname]</span> ".'提起了你哦~点击看看!';
|
|
|
$info = [
|