Compare commits

..

No commits in common. "88693d7196c1021535071edc3023a84f417a582b" and "129612605a3c98e106a0946bb6a6203d794f57cf" have entirely different histories.

View File

@ -2,7 +2,7 @@ async def getpromoting(ns):
"""促销展示""" """促销展示"""
db = DBPools() db = DBPools()
async with db.sqlorContext('kboss') as sor: async with db.sqlorContext('kboss') as sor:
# if ns: if ns:
# 生成邀请码展示促销活动 # 生成邀请码展示促销活动
users_id = await get_user() users_id = await get_user()
if ns.get('type'): if ns.get('type'):
@ -27,8 +27,7 @@ async def getpromoting(ns):
ns['orgid'] = orgid[0]['orgid'] ns['orgid'] = orgid[0]['orgid']
reacs = await sor.R('promoting', ns) reacs = await sor.R('promoting', ns)
return {'status': True, 'data': reacs} return {'status': True, 'data': reacs}
return {'status': False, 'msg': '参数不正确'}
# return {'status': False, 'msg': '参数不正确'}
ret = await getpromoting(params_kw) ret = await getpromoting(params_kw)
return ret return ret