147 request.usr_id bugfix
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
//variables.framework.docs={};
|
//variables.framework.docs={};
|
||||||
variables.framework.docs.APIName="svc-api";
|
variables.framework.docs.APIName="svc-api";
|
||||||
variables.framework.docs.APIVersion="0.146"; /*$ git config --global --unset user.password*/
|
variables.framework.docs.APIVersion="0.147"; /*$ git config --global --unset user.password*/
|
||||||
|
|
||||||
variables.framework.globalHeaders = structNew();
|
variables.framework.globalHeaders = structNew();
|
||||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||||
|
|||||||
@@ -162,6 +162,17 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<cfargument name="svcOperationCfsParamId" type="string" required=true hint="type:integer"/>
|
<cfargument name="svcOperationCfsParamId" type="string" required=true hint="type:integer"/>
|
||||||
<cfargument name="paramValue" type="string" required=true hint="type:string ***Валидацию пока не проводим, а надо"/>
|
<cfargument name="paramValue" type="string" required=true hint="type:string ***Валидацию пока не проводим, а надо"/>
|
||||||
<cfargument name="note" type="string" required=false default="" hint="type:string description: комментарий пользователя"/>
|
<cfargument name="note" type="string" required=false default="" hint="type:string description: комментарий пользователя"/>
|
||||||
|
<!---
|
||||||
|
неявно инжектируются
|
||||||
|
arguments.usrId (используется)
|
||||||
|
arguments.contragentId
|
||||||
|
arguments.contractId
|
||||||
|
arguments.specificationId
|
||||||
|
Мы их не декларитуем, иначе Taffy их увидит и будет думать, что надо их получить,
|
||||||
|
и включит в документацию,
|
||||||
|
и можно будет их задать принудительно, что нам совершенно не нужно
|
||||||
|
--->
|
||||||
|
|
||||||
|
|
||||||
<cftry>
|
<cftry>
|
||||||
<cfset this.helper.validateField(arguments, "instanceOperationUid", "guid")/>
|
<cfset this.helper.validateField(arguments, "instanceOperationUid", "guid")/>
|
||||||
@@ -249,6 +260,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<cfargument name="instanceOperationCfsParamUid" type="guid" default="00000000-0000-0000-0000-000000000000"/><!--- используется при проверке уникальности, чтобы не сравнивать с собой --->
|
<cfargument name="instanceOperationCfsParamUid" type="guid" default="00000000-0000-0000-0000-000000000000"/><!--- используется при проверке уникальности, чтобы не сравнивать с собой --->
|
||||||
<!--- *** Вероятно, стоит возвращать конкретную ругань --->
|
<!--- *** Вероятно, стоит возвращать конкретную ругань --->
|
||||||
<!--- принадлежит ли параметр данному сервису, проверяется выше --->
|
<!--- принадлежит ли параметр данному сервису, проверяется выше --->
|
||||||
|
<cfargument name="usrId" type="numeric"/>
|
||||||
|
|
||||||
<!--- получаем метаданные параметра --->
|
<!--- получаем метаданные параметра --->
|
||||||
<cfset var local={}/>
|
<cfset var local={}/>
|
||||||
@@ -302,7 +314,8 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
qSvcOperationCfsParam.svc_operation_cfs_param,
|
qSvcOperationCfsParam.svc_operation_cfs_param,
|
||||||
arguments.paramValue,
|
arguments.paramValue,
|
||||||
qSvcOperationCfsParam.unique_scope,
|
qSvcOperationCfsParam.unique_scope,
|
||||||
arguments.instanceOperationCfsParamUid
|
arguments.instanceOperationCfsParamUid,
|
||||||
|
arguments.usrId
|
||||||
)/>
|
)/>
|
||||||
</cffunction>
|
</cffunction>
|
||||||
|
|
||||||
@@ -313,7 +326,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<cfargument name="paramValue" type="string"/>
|
<cfargument name="paramValue" type="string"/>
|
||||||
<cfargument name="scope" type="string"/>
|
<cfargument name="scope" type="string"/>
|
||||||
<cfargument name="instanceOperationCfsParamUid" type="guid"/>
|
<cfargument name="instanceOperationCfsParamUid" type="guid"/>
|
||||||
<!--- arguments.usrId passed implicitly --->
|
<cfargument name="usrId" type="numeric"/>
|
||||||
|
|
||||||
<cfset var local={}/>
|
<cfset var local={}/>
|
||||||
<cfswitch expression=#arguments.scope#>
|
<cfswitch expression=#arguments.scope#>
|
||||||
|
|||||||
Reference in New Issue
Block a user