Compare commits

...

2 Commits

Author SHA1 Message Date
ping
843c79deed Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss 2026-06-10 11:01:02 +08:00
ping
c5e0cc4ecd update 2026-06-10 11:00:43 +08:00

View File

@ -85,7 +85,7 @@ async def publish_product_add(ns={}):
if ns.get('price') and ns.get('discount'):
ns_dic['discount_price'] = float(ns.get('price')) * float(ns['discount']) / 10
else:
ns_dic['discount_price'] = ns['price']
ns_dic['discount_price'] = ns.get('price')
user_role = await get_user_role({'userid': userid, 'sor': sor})
# 非客户角色不需要审批
if user_role != '客户' and user_role != '管理员':