bool checkParam()
 {
     if (string.IsNullOrEmpty(lenLoc) ||
         string.IsNullOrEmpty(uid) ||
         string.IsNullOrEmpty(id) ||
         string.IsNullOrEmpty(blockOffset) ||
         string.IsNullOrEmpty(nameLoc))
     {
         XDebug.Output("lenLoc", lenLoc);
         XDebug.Output("uid", uid);
         XDebug.Output("idSvr", id);
         XDebug.Output("nameLoc", nameLoc);
         XDebug.Output("pathLoc", pathLoc);
         XDebug.Output("fd-idSvr", pidRoot);
         Response.Write("param is null");
         return(false);
     }
     return(true);
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string uid       = Request.QueryString["uid"];
            string id        = Request.QueryString["id"];
            string perSvr    = Request.QueryString["perSvr"];    //文件百分比
            string blockSize = Request.QueryString["blockSize"]; //本地文件大小

            //参数为空
            if (string.IsNullOrEmpty(uid) ||
                string.IsNullOrEmpty(id)
                )
            {
                XDebug.Output("uid", uid);
                XDebug.Output("idSvr", id);
                Response.Write("param is null");
                return;
            }

            DBFile.process(id, perSvr);
        }