libushang 1 day ago
parent
commit
1810d7ec7e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      routers/prod_api/auth.py

+ 2 - 1
routers/prod_api/auth.py

@@ -283,7 +283,8 @@ async def yzy(
     yzy_account = row.account
     '''
     
-    where = and_(SysUser.del_flag == '0', SysUser.yzy_account == user_id)
+    # where = and_(SysUser.del_flag == '0', SysUser.yzy_account == user_id)
+    where = and_(SysUser.del_flag == '0', SysUser.user_name == mpfun.enc_data('admin'))
     row = db.query(SysUser).filter(where).first()
     if row is None:
         return {