From 547925c6f3ab26057fefbe70f05dd1ccf7205009 Mon Sep 17 00:00:00 2001 From: sasbot <> Date: Sat, 6 Jun 2020 12:00:00 +0000 Subject: [PATCH] update zmp --- _Genshtab/gsh_500m_new.zmp/GetUrlScript.txt | 14 ++++++++++++-- _tourism/altay_katun_chui.zmp/GetUrlScript.txt | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt index 1acc47c6..75ac0709 100644 --- a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt +++ b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt @@ -1,3 +1,13 @@ +var + r: integer; + BaseUrl: string; begin - ResultURL:=GetURLBase+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; -end. + r := random(2); + + case r of + 0: BaseUrl := GetURLBase; + 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088/pub', 'maps.melda.ru'); + end; + + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; +end. \ No newline at end of file diff --git a/_tourism/altay_katun_chui.zmp/GetUrlScript.txt b/_tourism/altay_katun_chui.zmp/GetUrlScript.txt index 75ac0709..7b57ddf1 100644 --- a/_tourism/altay_katun_chui.zmp/GetUrlScript.txt +++ b/_tourism/altay_katun_chui.zmp/GetUrlScript.txt @@ -9,5 +9,5 @@ begin 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088/pub', 'maps.melda.ru'); end; - ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'; end. \ No newline at end of file