mirror of
				https://github.com/Kakune55/PyGetGPT.git
				synced 2025-10-31 03:54:41 +08:00 
			
		
		
		
	密钥查询功能完成
This commit is contained in:
		
							
								
								
									
										48
									
								
								templates/lookupKey.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								templates/lookupKey.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="zh-CN"> | ||||
|  | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <title>查询密钥</title> | ||||
|     <style> | ||||
|         body { | ||||
|             font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||||
|             background-color: #f7f7f7; | ||||
|             padding: 20px; | ||||
|         } | ||||
|  | ||||
|         .container { | ||||
|             background-color: #fff; | ||||
|             padding: 20px; | ||||
|             border-radius: 8px; | ||||
|             box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="container"> | ||||
|         <h2>查询密钥</h2> | ||||
|         <form method="post"> | ||||
|             <span>UserKey</span> | ||||
|             <input name="key" required> | ||||
|             <button type="submit">查询</button> | ||||
|         </form> | ||||
|     </div> | ||||
|     {% if resq != "null" %} | ||||
|     <hr> | ||||
|     <div class="container"> | ||||
|         <h2>执行结果</h2> | ||||
|         {% if resq == -99999 %} | ||||
|         <h4>未找到UserKey</h4> | ||||
|         {% else %} | ||||
|         <h4>配额剩余 {{ resq }}</h4> | ||||
|         {% endif %} | ||||
|     </div> | ||||
|     {% endif %} | ||||
|     <script> | ||||
|  | ||||
|     </script> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
| @@ -92,7 +92,7 @@ | ||||
| 					<td><a href="/admin/list" class="nodecoration">列出所有Key</a></td> | ||||
| 				</tr> | ||||
| 				<tr> | ||||
| 					<td>查询密钥</td> | ||||
| 					<td><a href="/admin/lookupkey" class="nodecoration">查询密钥</a></td> | ||||
| 				</tr> | ||||
| 				<tr> | ||||
| 					<td><a href="/admin/createkey" class="nodecoration">创建密钥</a></td> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user