格式化代码

This commit is contained in:
sunxiyuan 2020-03-18 12:00:04 +08:00
parent a5b0f5c8fe
commit 368818acd0
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}
}

View file

@ -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) {