Remove old curl api for email-deamon.

This commit is contained in:
Harry Zhou
2017-06-18 03:52:27 +08:00
parent 878b3774ea
commit 4dcbf55cf1
@@ -23,16 +23,6 @@ class MessageController extends Controller
{
public function showMessageView(Request $request)
{
$user_id = $request->session()->get('user_id');
$post_data = 'user_id='.$user_id.'';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '127.0.0.1:6565/notify');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$output = curl_exec($ch);
curl_close($ch);
return View::make('message.message');
}