Skip to content

Commit b7861ca

Browse files
committed
version
1 parent 870d95e commit b7861ca

File tree

1 file changed

+23
-1
lines changed
  • generator-web/src/main/resources/templates

1 file changed

+23
-1
lines changed

generator-web/src/main/resources/templates/index.ftl

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,28 @@
108108
}
109109
});
110110
111+
function getVersion(){
112+
var gitVersion ;
113+
$.ajax({
114+
type: 'GET',
115+
url: "https://raw.githubusercontent.com/moshowgame/SpringBootCodeGenerator/master/generator-web/src/main/resources/static/version.json",
116+
dataType: "json",
117+
success: function (data) {
118+
gitVersion = data.version;
119+
$.ajax({
120+
type: 'GET',
121+
url: base_url + "/static/version.json",
122+
dataType: "json",
123+
success: function (data) {
124+
$.toast("#当前版本:"+data.version+" | github:"+gitVersion);
125+
}
126+
});
127+
}
128+
});
129+
}
130+
$('#version').on('click', function(){
131+
getVersion();
132+
});
111133
});
112134
</script>
113135
</head>
@@ -131,7 +153,7 @@
131153
<p class="lead">
132154
√基于SpringBoot2+Freemarker的代码生成器,√以释放双手为目的,√支持mysql/oracle/pgsql三大数据库,<br>
133155
√用DDL-SQL语句生成JPA/JdbcTemplate/Mybatis/MybatisPlus/BeetlSQL相关代码。<br>
134-
欢迎大家多多提交模板和交流想法,如果发现有SQL语句不能识别,请<a href="https://github.com/moshowgame/SpringBootCodeGenerator/issues">留言</a>,同时欢迎大家提<a href="https://github.com/moshowgame/SpringBootCodeGenerator/pulls">PR</a>和<a href="#" id="donate1">点击赞赏</a>,谢谢!
156+
如果发现有SQL语句不能识别,请<a href="https://github.com/moshowgame/SpringBootCodeGenerator/issues">留言</a>,同时欢迎大家提<a href="https://github.com/moshowgame/SpringBootCodeGenerator/pulls">PR</a>和<a href="#" id="donate1">赞赏</a>,谢谢!<a id="version" href="#">查看版本</a>
135157
</p>
136158
<div id="donate" class="container" show="no"></div>
137159
<hr>

0 commit comments

Comments
 (0)