正在显示
5 个修改的文件
包含
11 行增加
和
1 行删除
@@ -86,6 +86,8 @@ spec: | @@ -86,6 +86,8 @@ spec: | ||
86 | value: "dev" | 86 | value: "dev" |
87 | - name: Log_PREFIX | 87 | - name: Log_PREFIX |
88 | value: "[partnermg_dev]" | 88 | value: "[partnermg_dev]" |
89 | + - name: APP_NAME | ||
90 | + value: "" | ||
89 | volumes: | 91 | volumes: |
90 | - name: accesslogs | 92 | - name: accesslogs |
91 | emptyDir: {} | 93 | emptyDir: {} |
@@ -83,6 +83,8 @@ spec: | @@ -83,6 +83,8 @@ spec: | ||
83 | value: "dev" | 83 | value: "dev" |
84 | - name: Log_PREFIX | 84 | - name: Log_PREFIX |
85 | value: "[partnermg_prd]" | 85 | value: "[partnermg_prd]" |
86 | + - name: APP_NAME | ||
87 | + value: "mmm-partnermg" | ||
86 | volumes: | 88 | volumes: |
87 | - name: accesslogs | 89 | - name: accesslogs |
88 | emptyDir: {} | 90 | emptyDir: {} |
@@ -83,6 +83,8 @@ spec: | @@ -83,6 +83,8 @@ spec: | ||
83 | value: "dev" | 83 | value: "dev" |
84 | - name: Log_PREFIX | 84 | - name: Log_PREFIX |
85 | value: "[partnermg_test]" | 85 | value: "[partnermg_test]" |
86 | + - name: APP_NAME | ||
87 | + value: "partnermg" | ||
86 | volumes: | 88 | volumes: |
87 | - name: accesslogs | 89 | - name: accesslogs |
88 | emptyDir: {} | 90 | emptyDir: {} |
@@ -8,6 +8,7 @@ var LOG_LEVEL = "debug" | @@ -8,6 +8,7 @@ var LOG_LEVEL = "debug" | ||
8 | var LOG_File = "./logs/partnermg.log" | 8 | var LOG_File = "./logs/partnermg.log" |
9 | var IMPORT_EXCEL = "./download/订单数据模板.xlsx" | 9 | var IMPORT_EXCEL = "./download/订单数据模板.xlsx" |
10 | var Log_PREFIX = "[partnermg_dev]" | 10 | var Log_PREFIX = "[partnermg_dev]" |
11 | +var APP_NAME = "" | ||
11 | var ( | 12 | var ( |
12 | UCENTER_HOST = "https://suplus-ucenter-test.fjmaimaimai.com" //统一用户中心地址 | 13 | UCENTER_HOST = "https://suplus-ucenter-test.fjmaimaimai.com" //统一用户中心地址 |
13 | UCENTER_SECRET = "cykbjnfqgctn" | 14 | UCENTER_SECRET = "cykbjnfqgctn" |
@@ -43,4 +44,7 @@ func init() { | @@ -43,4 +44,7 @@ func init() { | ||
43 | if os.Getenv("Log_PREFIX") != "" { | 44 | if os.Getenv("Log_PREFIX") != "" { |
44 | Log_PREFIX = os.Getenv("Log_PREFIX") | 45 | Log_PREFIX = os.Getenv("Log_PREFIX") |
45 | } | 46 | } |
47 | + if os.Getenv("APP_NAME") != "" { | ||
48 | + APP_NAME = os.Getenv("APP_NAME") | ||
49 | + } | ||
46 | } | 50 | } |
@@ -682,7 +682,7 @@ func (c *OrderInfoController) DownloadTemplate() { | @@ -682,7 +682,7 @@ func (c *OrderInfoController) DownloadTemplate() { | ||
682 | } else { | 682 | } else { |
683 | logs.Info(resp) | 683 | logs.Info(resp) |
684 | ret = map[string]interface{}{ | 684 | ret = map[string]interface{}{ |
685 | - "url": "http://" + c.Ctx.Request.Host + "/partnermg/download/订单数据模板.xlsx", | 685 | + "url": "http://" + c.Ctx.Request.Host + "/" + constant.APP_NAME + "/download/订单数据模板.xlsx", |
686 | } | 686 | } |
687 | c.ResponseData(ret) | 687 | c.ResponseData(ret) |
688 | } | 688 | } |
-
请 注册 或 登录 后发表评论