提交流程参数封装的逻辑
This commit is contained in:
parent
10e365ca3e
commit
02b43f0bfa
@ -48,6 +48,7 @@ public class FlowController extends HttpServlet {
|
||||
if ( sArgs.indexOf( "CurUserID" ) == -1 ) {
|
||||
sArgs += ",CurUserID=8006U00000001";
|
||||
}
|
||||
sArgs += getFixedFlowParam( sArgs );
|
||||
sArgs = URLDecoder.decode(sArgs, "UTF-8").replace("Ж", "+").replace("ё", "%");
|
||||
}
|
||||
ASUser CurUser = ASUser.getUser( "8006U00000001", null );
|
||||
@ -66,4 +67,20 @@ public class FlowController extends HttpServlet {
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
|
||||
public static String getFixedFlowParam ( String args ) {
|
||||
StringBuffer fixedFlowParam = new StringBuffer( "{" );
|
||||
if ( args != null && args.length() > 0 ) {
|
||||
String[] argObjects = args.split( "," );
|
||||
for ( String obj : argObjects ) {
|
||||
if ( fixedFlowParam.length() > 1 ) {
|
||||
fixedFlowParam.append( "," );
|
||||
}
|
||||
fixedFlowParam.append( obj.split( "=" )[0] )
|
||||
.append( ":" ).append( obj.split( "=" )[1] );
|
||||
}
|
||||
fixedFlowParam.append( "}" );
|
||||
}
|
||||
return ",FixedFlowParam=" + fixedFlowParam.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user