浏览代码

Merge branch 'bugfix_6486' into debug

xiziwen 4 月之前
父节点
当前提交
813495753f
共有 2 个文件被更改,包括 13 次插入4 次删除
  1. 13 0
      utils/config.go
  2. 0 4
      utils/constants.go

+ 13 - 0
utils/config.go

@@ -176,6 +176,8 @@ var (
 	ETA_FORUM_HUB_MD5_KEY string
 )
 
+var ApproveUserId int
+
 func init() {
 	tmpRunMode, err := web.AppConfig.String("run_mode")
 	if err != nil {
@@ -377,6 +379,9 @@ ZwIDAQAB
 
 	//微信商户内部配置
 	WxPayConfig()
+
+	//出差审批人配置
+	initApproveUserIdConfig()
 }
 
 // 测试环境模板消息
@@ -549,3 +554,11 @@ func WxPayConfig() {
 //http://adminapi.brilliantstart.cn/admin/
 //http://adminapi.brilliantstart.cn/swagger/
 //http://8.136.199.33:8602/swagger/
+
+// initApproveUserIdConfig 出差审批人配置
+func initApproveUserIdConfig() {
+	ApproveUserId = 9
+	if RunMode == "debug" {
+		ApproveUserId = 231
+	}
+}

+ 0 - 4
utils/constants.go

@@ -562,10 +562,6 @@ const (
 // BusinessCodeSalt 商家编码盐值
 const BusinessCodeSalt = "dr7WY0OZgGR7upw1"
 
-const (
-	ApproveUserId = 9 //戚明之-出差审批人
-)
-
 // 查研观向 研选专栏 作者头像和背景
 const (
 	CYGX_YANXUAN_SPECIAL_HEAD_IMG_URL  = "https://hzstatic.hzinsights.com/cygx/yanxuan_special/head_img/Mask%20group-"