From 3aa254d017183214cd8f5a4d22a66b162dd5fe9f Mon Sep 17 00:00:00 2001 From: Mashiro Date: Tue, 3 Dec 2019 21:48:15 +0800 Subject: [PATCH] Update api.php --- inc/api.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/inc/api.php b/inc/api.php index dd69831..59328e4 100644 --- a/inc/api.php +++ b/inc/api.php @@ -39,9 +39,7 @@ function get_qq_info(WP_REST_Request $request) $output = array( 'status' => 403, 'success' => false, - 'message' => 'Unauthorized client.', - 'avatar' => 'https://q2.qlogo.cn/headimg_dl?dst_uin=0&spec=100', - 'name' => '', + 'message' => 'Unauthorized client.' ); } elseif ($_GET['qq']) { $qq = $_GET['qq']; @@ -65,18 +63,14 @@ function get_qq_info(WP_REST_Request $request) $output = array( 'status' => 404, 'success' => false, - 'message' => 'QQ number not exist.', - 'avatar' => 'https://q.qlogo.cn/headimg_dl?dst_uin=0&spec=100', - 'name' => '', + 'message' => 'QQ number not exist.' ); } } else { $output = array( 'status' => 400, 'success' => false, - 'message' => 'Bad Request', - 'avatar' => 'https://q2.qlogo.cn/headimg_dl?dst_uin=0&spec=100', - 'name' => '', + 'message' => 'Bad Request' ); }