|
|
@@ -1,11 +1,13 @@
|
|
|
package param
|
|
|
|
|
|
-import "context"
|
|
|
+import (
|
|
|
+ "context"
|
|
|
+)
|
|
|
|
|
|
-func GetHttpsUrl(c context.Context) string {
|
|
|
- httpsUrl := c.Value("https_url")
|
|
|
- if _, ok := httpsUrl.(string); ok {
|
|
|
- return httpsUrl.(string)
|
|
|
+func GetReferer(c context.Context) string {
|
|
|
+ referer := c.Value("referer")
|
|
|
+ if _, ok := referer.(string); ok {
|
|
|
+ return referer.(string)
|
|
|
}
|
|
|
return ""
|
|
|
}
|