支持测试环境

This commit is contained in:
xxq250 2024-11-06 11:10:53 +08:00
parent 5b136a7db5
commit b775f83383
1 changed files with 3 additions and 0 deletions

View File

@ -601,6 +601,9 @@ def fetch_data(url):
def calculate(request):
owner = request.GET.get('owner')
repository = request.GET.get('repository')
env_url = "https://www.gitlink.org.cn"
if request.GET.get('env_url') == "testforgeplus":
env_url = "https://testforgeplus.trustie.net"
# owner = "xuos" # 替换为实际的 owner
# repository = "xiuos" # 替换为实际的 repository