Update api.php

This commit is contained in:
Mashiro 2019-12-03 21:42:52 +08:00 committed by GitHub
parent f301cdcde1
commit a1d513bcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ function get_qq_info(WP_REST_Request $request)
$output = array( $output = array(
'status' => 200, 'status' => 200,
'success' => true, 'success' => true,
'message' => 'success',
'avatar' => 'https://q.qlogo.cn/headimg_dl?dst_uin=' . $qq . '&spec=100', 'avatar' => 'https://q.qlogo.cn/headimg_dl?dst_uin=' . $qq . '&spec=100',
'name' => $name[$qq][6], 'name' => $name[$qq][6],
); );
@ -414,4 +415,4 @@ function update_manifest_json() {
$result->set_headers(array('Content-Type' => 'application/json')); $result->set_headers(array('Content-Type' => 'application/json'));
return $result; return $result;
} }
} }