瀏覽代碼

Merge branch 'cygx_3.1.1' of http://8.136.199.33:3000/cxzhang/hongze_mfyx into debug

xingzai 1 年之前
父節點
當前提交
3da2358175
共有 3 個文件被更改,包括 9 次插入6 次删除
  1. 2 0
      controllers/report.go
  2. 2 2
      controllers/wechat.go
  3. 5 4
      models/report.go

+ 2 - 0
controllers/report.go

@@ -51,7 +51,9 @@ func (this *ReportController) IsShow() {
 	if total > 0 {
 		resp.IsYanxuanSpecialAuthor = true
 	}
+	//resp.IsShowMobileAndEmailButton = true
 	resp.IsShowWxPay = utils.IS_SHOW_WX_PAY // 是否调取微信支付
+
 	resp.IsShow = true
 	br.Ret = 200
 	br.Success = true

+ 2 - 2
controllers/wechat.go

@@ -306,8 +306,8 @@ func (this *WechatController) GetEmailCode() {
 		return
 	}
 	msgCode := utils.GetRandDigit(4)
-	content := "尊敬的用户:</br>您好,感谢您使用弘则研究,您正在进行邮箱验证,本次请求的验证码为:" + msgCode + "(为了保障您账号的安全性,请在15分钟内完成验证。)</br>弘则研究团队 </br>2019年05月11日"
-	title := "弘则研究登陆验证"
+	content := "尊敬的用户:</br>您好,感谢您使用买方研选,您正在进行邮箱验证,本次请求的验证码为:" + msgCode + "(为了保障您账号的安全性,请在15分钟内完成验证。)</br>买方研选团队 </br>2019年05月11日"
+	title := "买方研选登陆验证"
 	//发送邮件
 	result, err := utils.SendEmailByHz(title, content, email)
 	if err != nil {

+ 5 - 4
models/report.go

@@ -371,10 +371,11 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
 }
 
 type IsShow struct {
-	IsShow                 bool   `description:"绝密内参按钮是否展示"`
-	IsYanxuanSpecialAuthor bool   `description:"绝密内参按钮是否展示"`
-	LinkWxExplain          string `description:"关注微信公众号链接说明地址"`
-	IsShowWxPay            bool   `description:"是否展示微信支付"`
+	IsShow                     bool   `description:"绝密内参按钮是否展示"`
+	IsYanxuanSpecialAuthor     bool   `description:"绝密内参按钮是否展示"`
+	LinkWxExplain              string `description:"关注微信公众号链接说明地址"`
+	IsShowMobileAndEmailButton bool   `description:"是否展示手机号跟邮箱按钮"`
+	IsShowWxPay                bool   `description:"是否展示微信支付"`
 }
 
 type SearchTxt struct {