bugfix
This commit is contained in:
parent
b660ffcb4f
commit
d60bdb14a2
@ -1,8 +1,14 @@
|
||||
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:
|
||||
try:
|
||||
curdate = curDateString()
|
||||
sql = """update params set params_value = ${curdate}$ where params_name='business_date'"""
|
||||
await sor.sqlExe(sql, {'curdate': curdate})
|
||||
return 'OK'
|
||||
except Exception as e:
|
||||
exception(f'{e}')
|
||||
raise e
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user