Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
eda99d09
Commit
eda99d09
authored
Jul 31, 2023
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 2023-7-31
parent
b5a2ec41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
current_user_info_dao.py
unify_api/modules/users/dao/current_user_info_dao.py
+3
-2
product_auth.py
unify_api/modules/users/views/product_auth.py
+0
-1
No files found.
unify_api/modules/users/dao/current_user_info_dao.py
View file @
eda99d09
...
...
@@ -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
),))
unify_api/modules/users/views/product_auth.py
View file @
eda99d09
...
...
@@ -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
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment