Beispiel #1
0
        /// <summary>
        /// 事件上传----老师打开PPT
        /// </summary>
        /// <param name="filename"></param>
        public static void uploadFileopenEvent(string filename)
        {
            ////异步同步到云服务
            string filepath      = EService.getFilepath(filename);
            string fileopen_data = "";
            string md5           = Util.GetFileMD5(filepath);

            fileopen_data += "filename=" + filename;
            fileopen_data += "&filepath=" + filepath;
            fileopen_data += "&md5=" + md5;
            doPostAsync("fileopen", fileopen_data);
            return;
        }
Beispiel #2
0
        /// <summary>
        /// 事件上传----老师打开PPT
        /// </summary>
        /// <param name="filename"></param>
        public static void uploadFilecloseEvent(string filename)
        {
            ////异步同步到云服务
            string filepath = EService.getFilepath(filename);
            string hdtype   = filepath.Split('#')[0].ToLower();
            string path     = filepath.Split('#')[1];

            string data = "filename=" + filename;

            data += "&drivertype=" + hdtype;
            data += "&filepath=" + System.Web.HttpUtility.UrlEncode(path, Encoding.UTF8);
            doPostAsync("fileclose", data);
            return;
        }