129 user-agent

This commit is contained in:
msyu
2025-08-27 12:25:54 +03:00
parent 6452d7bdb5
commit f3954bfd7a
4 changed files with 11 additions and 4 deletions
+6 -4
View File
@@ -51,7 +51,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="Deck API";
variables.framework.docs.APIVersion="0.128"; /*$ git config --global --unset user.password*/
variables.framework.docs.APIVersion="0.129"; /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
@@ -62,7 +62,8 @@
request.UNDEFINED_USR_ID=-1;
request.ANONYMOUS_USR_ID=2;
request.GUEST_USR_ID=3
request.GUEST_USR_ID=3;
request.USER_AGENT="#variables.framework.docs.APIName# #variables.framework.docs.APIVersion# stand:#this.getStand()#";
////////////////////////////////////////////////////////
request.ORCHESTRATOR_AUTH = createObject("java", "java.lang.System").getEnv("ORCHESTRATOR_AUTH");
@@ -108,7 +109,7 @@
<cfset request.castToBoolSimple=#castToBoolSimple#/>
<!--- почему-то эта функция недоступна onApplicationStart --->
<!--- <cffunction
<cffunction
name="getStand"
access="private"
returntype="string"
@@ -126,7 +127,7 @@
</cfcatch>
</cftry>
<cfreturn ""/>
</cffunction> --->
</cffunction>
<cffunction name="onApplicationStart">
@@ -142,6 +143,7 @@
<cffunction name="locateIamService"><!--- *** архитектурный колхоз --->
<!--- почему-то мы не видим других функций, когда нас вызывают onApplicationStart. С другой стороны, а почему вообще должны вызывать без перезагрузки приложения --->
<cfset var stand=""/>
<!--- дублируем код, потому что getStand отсюда почему-то не виден --->
<cftry>
<cfquery name=qConfig>
select value as stand from config