This commit is contained in:
yumoqing 2025-12-30 17:48:53 +08:00
parent 933159b4be
commit f733d403b3
2 changed files with 13 additions and 0 deletions

6
wwwroot/cron/index.ui Normal file
View File

@ -0,0 +1,6 @@
{
"widgettype":"Text",
"options":{
"text":"oops"
}
}

View File

@ -0,0 +1,7 @@
ip = request['client_ip']
if ip not in ['127.0.0.1']:
return ip
async with get_sor_context(request._run_ns, 'appbase') as sor:
curdate = curDateString()
sql = """update params set params_value = ${curdate}$ where params_name='business_date'"""
await sor.sqlExe(sql, {'curdate': curdate})