mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -133,7 +133,7 @@ Install_App()
|
||||
cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb
|
||||
fi
|
||||
|
||||
cd $rootPath && python3 ${rootPath}/plugins/webstats/index.py start
|
||||
cd $rootPath && python3 plugins/webstats/index.py start
|
||||
|
||||
echo '网站统计安装完成'
|
||||
|
||||
|
||||
@@ -31,11 +31,6 @@ def getServerDir():
|
||||
return mw.getServerDir() + '/' + getPluginName()
|
||||
|
||||
|
||||
def getTaskConf():
|
||||
conf = getServerDir() + "/task_config.json"
|
||||
return conf
|
||||
|
||||
|
||||
def getConf():
|
||||
conf = getServerDir() + "/lua/config.json"
|
||||
return conf
|
||||
@@ -126,7 +121,7 @@ def migrateSiteHotLogs(site_name, query_date):
|
||||
if field is None:
|
||||
field = "\'\'"
|
||||
elif type(field) == str:
|
||||
field = "\'" + field.replace("\'", "\”") + "\'"
|
||||
field = "\'" + field.replace("\'", "\"") + "\'"
|
||||
params += str(field)
|
||||
insert_sql = "insert into web_logs(" + \
|
||||
_columns + ") values(" + params + ")"
|
||||
|
||||
Reference in New Issue
Block a user