add ad
This commit is contained in:
parent
1297c33de1
commit
bbe50b5bbe
@ -27,8 +27,8 @@ class Company(Resource):
|
||||
try:
|
||||
data = company_redis.hmget(comp_id, ['id', 'name', 'contact', 'appid', 'appkey'])
|
||||
log.info(f"get data from redis was {data}")
|
||||
id,_,_,_,_=data
|
||||
if not id:
|
||||
_,name,_,_,_=data
|
||||
if not name:
|
||||
sql = f"select id,name,contact,appid,appkey from company where id={comp_id};"
|
||||
data = mydb.query(sql)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user