1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-05-12 03:06:54 +02:00

优化插件检测更新功能

This commit is contained in:
云落 2020-03-20 21:58:58 +08:00
parent 065e31e070
commit 9f7a563788
2 changed files with 2 additions and 2 deletions

View file

@ -376,7 +376,7 @@ jQuery(function ($) {
function(a) {
a = $.trim(a);
if (a !== '400') {
$(".get_new_version").after("" + a + "");
$(".get_new_version").after(a);
}else{
$(".get_new_version").after("检测失败,网络错误");
}

View file

@ -33,7 +33,7 @@ function gdk_ajax_get_update()
$version = $plugin_info['version'];
if (version_compare($version, GDK_PLUGIN_VER, '>')) {
exit('<span class="get_update_res">插件有更新,<a href="' . $plugin_info['details_url'] . '" target="_blank">请及时查看!</a></span>');
exit('<span class="get_update_res">插件有更新,新版本:<span class="key_word">' . $version . '</span> <a class="feedback add-new-h2" href="' . $plugin_info['details_url'] . '" target="_blank">查看更新内容</a> <a class="feedback add-new-h2" href="' . $plugin_info['download_url'] . '" target="_blank">请点击下载</a></span>');
} else {
exit('<span class="get_update_res">你的插件目前已经是最新版了!</span>');
}