147 request.usr_id bugfix
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@
|
||||
|
||||
//variables.framework.docs={};
|
||||
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["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="paramValue" type="string" required=true hint="type:string ***Валидацию пока не проводим, а надо"/>
|
||||
<cfargument name="note" type="string" required=false default="" hint="type:string description: комментарий пользователя"/>
|
||||
<!---
|
||||
неявно инжектируются
|
||||
arguments.usrId (используется)
|
||||
arguments.contragentId
|
||||
arguments.contractId
|
||||
arguments.specificationId
|
||||
Мы их не декларитуем, иначе Taffy их увидит и будет думать, что надо их получить,
|
||||
и включит в документацию,
|
||||
и можно будет их задать принудительно, что нам совершенно не нужно
|
||||
--->
|
||||
|
||||
|
||||
<cftry>
|
||||
<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="usrId" type="numeric"/>
|
||||
|
||||
<!--- получаем метаданные параметра --->
|
||||
<cfset var local={}/>
|
||||
@@ -302,7 +314,8 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
||||
qSvcOperationCfsParam.svc_operation_cfs_param,
|
||||
arguments.paramValue,
|
||||
qSvcOperationCfsParam.unique_scope,
|
||||
arguments.instanceOperationCfsParamUid
|
||||
arguments.instanceOperationCfsParamUid,
|
||||
arguments.usrId
|
||||
)/>
|
||||
</cffunction>
|
||||
|
||||
@@ -313,7 +326,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
||||
<cfargument name="paramValue" type="string"/>
|
||||
<cfargument name="scope" type="string"/>
|
||||
<cfargument name="instanceOperationCfsParamUid" type="guid"/>
|
||||
<!--- arguments.usrId passed implicitly --->
|
||||
<cfargument name="usrId" type="numeric"/>
|
||||
|
||||
<cfset var local={}/>
|
||||
<cfswitch expression=#arguments.scope#>
|
||||
|
||||
Reference in New Issue
Block a user