libushang 1 giorno fa
parent
commit
1810d7ec7e
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 {