bugfix
This commit is contained in:
parent
933159b4be
commit
f733d403b3
6
wwwroot/cron/index.ui
Normal file
6
wwwroot/cron/index.ui
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"widgettype":"Text",
|
||||||
|
"options":{
|
||||||
|
"text":"oops"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
wwwroot/cron/switch_bizdate.dspy
Normal file
7
wwwroot/cron/switch_bizdate.dspy
Normal 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})
|
||||||
Loading…
x
Reference in New Issue
Block a user