From 51faca7cff4ce6b848fcbd8f7fe881f6fc59b4f3 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 27 六月 2024 16:06:03 +0800 Subject: [PATCH] add xfile --- jrj/xframe/wobject/xaserver.hpp | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/jrj/xframe/wobject/xaserver.hpp b/jrj/xframe/wobject/xaserver.hpp index d309054..0378f58 100644 --- a/jrj/xframe/wobject/xaserver.hpp +++ b/jrj/xframe/wobject/xaserver.hpp @@ -170,9 +170,9 @@ return kxaserver::UploadEx((LPTSTR)pUri, (LPTSTR)pName,m_hWnd, (LPTSTR)pSource,bCompress); } - static int Upload(LPTSTR pUri,LPTSTR pName,HWND m_hWnd,LPTSTR pSource=NULL,BOOL bCompress=false) + static int Upload(LPCTSTR pUri,LPCTSTR pName,HWND m_hWnd,LPCTSTR pSource=NULL,BOOL bCompress=false) { - return kxaserver::Upload(pUri,pName,m_hWnd,pSource,bCompress); + return kxaserver::Upload((LPTSTR)pUri,(LPTSTR)pName,m_hWnd, (LPTSTR)pSource,bCompress); } static int Upload(LPCTSTR pUri,LPCTSTR pName,LPCTSTR pPath,HWND m_hWnd,LPCTSTR pSource=NULL,BOOL bCompress=false) @@ -188,11 +188,11 @@ { return kxaserver::UploadFile((LPTSTR)pUri,(LPTSTR)pName,m_hWnd,(LPTSTR)pSource,bCompress); } - static int __DeleteFile(LPTSTR pName) + static int DeleteFile(LPTSTR pName) { return kxaserver::__DeleteFile(pName); } - static int __CreateDirectory(LPCTSTR pName) + static int CreateDirectory(LPCTSTR pName) { return kxaserver::__CreateDirectory((LPTSTR)pName); } @@ -205,4 +205,8 @@ { return kxaserver::UploadData((LPTSTR)pUri, (LPTSTR)pName, (LPTSTR)pData); } + static xstring GetUserId() + { + return GetUID(); + } }; \ No newline at end of file -- Gitblit v1.9.3