mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
格式化代码
This commit is contained in:
parent
a5b0f5c8fe
commit
368818acd0
2 changed files with 3 additions and 3 deletions
|
@ -232,14 +232,14 @@ class WP_CHINA_YES {
|
|||
}
|
||||
|
||||
public static function settings() {
|
||||
$iframe_str = <<<EOT
|
||||
$iframe_str = <<<EOT
|
||||
<div style="height: 20px"></div>
|
||||
<iframe src="/wp-content/plugins/wp-china-yes/settings.html"
|
||||
frameborder="0" height="850" width="800px;" scrolling="No" leftmargin="0" topmargin="0">
|
||||
</iframe>
|
||||
EOT;
|
||||
$plugin_root_url = plugins_url();
|
||||
$iframe_str = str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str);
|
||||
$iframe_str = str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str);
|
||||
echo $iframe_str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
data.append('custom_download_server', vm.mirrors_form.custom_download_server);
|
||||
data.append('api_server', vm.mirrors_form.api_server);
|
||||
data.append('download_server', vm.mirrors_form.download_server);
|
||||
|
||||
|
||||
let root_url = window.location.href.split('wp-content')[0];
|
||||
axios.post(root_url + 'wp-content/plugins/wp-china-yes/api.php', data)
|
||||
.then(function (response) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue