public void TS_Plvi(Auth auth, Plvi request, Plvi_Logic logic, CommonResponse ecr, string[] token, string uri)
								{
												if (auth.AuthResult(token, uri))
												{
																if (uri.IndexOf("/plvi1/sps") > 0)
																{
																				ecr.data.results = logic.Get_Plvi1_SpsList(request);
																}
																else if (uri.IndexOf("/plvi1/update") > 0)
																{
																				ecr.data.results = logic.Update_Plvi1(request);
																}
																ecr.meta.code = 200;
																ecr.meta.message = "OK";
												}
												else
												{
																ecr.meta.code = 401;
																ecr.meta.message = "Unauthorized";
												}
								}
示例#2
0
 public void TS_Plvi(Auth auth, Plvi request, Plvi_Logic logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/plvi1/sps") > 0)
         {
             ecr.data.results = logic.Get_Plvi1_SpsList(request);
         }
         else if (uri.IndexOf("/plvi1/update") > 0)
         {
             ecr.data.results = logic.Update_Plvi1(request);
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }