优化 更新数据库

This commit is contained in:
LyLme 2022-05-03 14:29:26 +08:00
parent 870ba7a8eb
commit bb1dfef8b9

View File

@ -1,5 +1,5 @@
<?php
if(empty(constant("VERSION")))exit;
if(empty(constant("VERSION")))return 0;
function get_vernum($version){
$vn = explode('.',str_replace('v','',$version));
$vernum = $vn[0].sprintf("%02d",$vn[1]).sprintf("%02d",$vn[2]);