bugfix
This commit is contained in:
parent
cdf20b7aee
commit
c890fdf249
@ -1,5 +1,6 @@
|
||||
from appPublic.qr import gen_qr
|
||||
from appPublic.uniqueID import getID
|
||||
from appPublic.dictObject import DictObject
|
||||
from sqlor.dbpools import get_sor_context
|
||||
from ahserver.serverenv import ServerEnv
|
||||
from ahserver.filestorage import FileStorage
|
||||
@ -35,7 +36,7 @@ async def discount_qrcode(request, params_kw):
|
||||
'qr_webpath': webp
|
||||
}
|
||||
await sor.C('discount_qr', ret.copy())
|
||||
return ret
|
||||
return DictObject(**ret)
|
||||
return None
|
||||
|
||||
async def set_promote_discount(request, params_kw):
|
||||
@ -74,7 +75,7 @@ async def set_promote_discount(request, params_kw):
|
||||
'expired_date': expired_date
|
||||
}
|
||||
await sor.C('discount', ret.copy())
|
||||
return ret
|
||||
return DictObject(**ret)
|
||||
return None
|
||||
|
||||
async def disable_old_discount(sor, resellerid, customerid, biz_date, new_discount):
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user