Commit eda99d09 authored by ZZH's avatar ZZH

fix 2023-7-31

parent b5a2ec41
......@@ -160,7 +160,8 @@ async def load_compy_info(cid):
async def load_compy_logo(cid):
sql = f"SELECT p.logo from proxy p left join company_proxy_map c " \
f"on p.proxy_id = c.proxy where c.cid = %s;"
sql = f"SELECT `proxy`.logo FROM `proxy` INNER JOIN company_proxy_map " \
f"ON `proxy`.proxy_id=company_proxy_map.`proxy` " \
f"WHERE company_proxy_map.cid=%s;"
async with MysqlUtil() as conn:
return await conn.fetchone(sql, args=(int(cid),))
......@@ -11,7 +11,6 @@ from unify_api.modules.users.components.product_auth_cps import (
ProxyNameResponse,
ProxyItem,
)
from sanic import response
from unify_api.modules.users.procedures.jwt_user import jwt_user
from unify_api.modules.users.procedures.user_product_auth import \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment