mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +08:00
部分方法修改为静态方法
This commit is contained in:
parent
e770bc631e
commit
8db1fb3f6a
1 changed files with 3 additions and 3 deletions
|
@ -142,7 +142,7 @@ EOT;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private function success($message = '', $data = []) {
|
private static function success($message = '', $data = []) {
|
||||||
header('Content-Type:application/json; charset=utf-8');
|
header('Content-Type:application/json; charset=utf-8');
|
||||||
|
|
||||||
echo json_encode([
|
echo json_encode([
|
||||||
|
@ -153,7 +153,7 @@ EOT;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function error($message = '', $code = - 1) {
|
private static function error($message = '', $code = - 1) {
|
||||||
header('Content-Type:application/json; charset=utf-8');
|
header('Content-Type:application/json; charset=utf-8');
|
||||||
header('Status:500');
|
header('Status:500');
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ EOT;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function set_wp_option(
|
private static function set_wp_option(
|
||||||
$community = 0,
|
$community = 0,
|
||||||
$custom_api_server = '',
|
$custom_api_server = '',
|
||||||
$custom_download_server = ''
|
$custom_download_server = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue