This commit is contained in:
gotoeasy 2024-09-09 11:27:10 +08:00
parent 1bea219b48
commit 811457c6e5
2 changed files with 7 additions and 1 deletions

View File

@ -76,6 +76,12 @@ def post_glc_data(glc_data, logLevel):
if not url: if not url:
return return
# 允许省略接口路径,默认自动补足以简化使用
if not url.endswith("/glc/v1/log/add"):
if not url.endswith("/"):
url += "/"
url += "glc/v1/log/add"
data = { data = {
'text': glc_data.text, 'text': glc_data.text,
'date': glc_data.date, 'date': glc_data.date,

View File

@ -18,7 +18,7 @@ URL = 'https://github.com/gotoeasy/glogcenter'
EMAIL = 'gotoeasy@163.com' EMAIL = 'gotoeasy@163.com'
AUTHOR = 'gotoeasy' AUTHOR = 'gotoeasy'
REQUIRES_PYTHON = '>=3.6.0' REQUIRES_PYTHON = '>=3.6.0'
VERSION = '0.3.0' VERSION = '0.17.1'
# What packages are required for this module to be executed? # What packages are required for this module to be executed?
REQUIRED = [ REQUIRED = [