1231
This commit is contained in:
20
MyCode.Project.Infrastructure/Common/WebUtils.cs
Normal file
20
MyCode.Project.Infrastructure/Common/WebUtils.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace Wolf.Project.Infrastructure.Common
|
||||
{
|
||||
public class WebUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// 取得来源URL
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetSourceUrl() {
|
||||
return HttpContext.Current.Request.UrlReferrer.Host.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user