1店铺登录逻辑优化 2备货单查询显示
This commit is contained in:
1 parent
89eb9ce9d4
commit
862ad088f5
216 files changed
+3481
-1543
No files matched your search
@@ -638,6 +638,46 @@ namespace AllBase
|
||||
return temp;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取值
|
||||
/// </summary>
|
||||
/// <param name="html"></param>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetStringQuery(ref string querString, string key)
|
||||
{
|
||||
int nIndex = querString.IndexOf(key + "=");
|
||||
if (nIndex == -1)
|
||||
return null;
|
||||
|
||||
string temp = querString.Substring(nIndex).Replace(key + "=", "");
|
||||
nIndex = temp.IndexOf('&');
|
||||
if (nIndex > -1)
|
||||
temp = temp.Substring(0, nIndex);
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取值
|
||||
/// </summary>
|
||||
/// <param name="html"></param>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetStringCookie(ref string cookieStr, string key)
|
||||
{
|
||||
int nIndex = cookieStr.IndexOf(key + "=");
|
||||
if (nIndex == -1)
|
||||
return null;
|
||||
|
||||
string temp = cookieStr.Substring(nIndex).Replace(key + "=", "");
|
||||
nIndex = temp.IndexOf(';');
|
||||
if (nIndex > -1)
|
||||
temp = temp.Substring(0, nIndex);
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
public static string FliterHtmlTag(string htmlStr)
|
||||
{
|
||||
if (String.IsNullOrEmpty(htmlStr))
|
||||
|
||||
Reference in new issue
Block a user