浏览代码

Merge branch 'master' of http://8.136.199.33:3000/cxzhang/hongze_mfyx into mfyx_2.0

# Conflicts:
#	controllers/report.go
#	models/report.go
xingzai 11 月之前
父节点
当前提交
8fd676b502
共有 4 个文件被更改,包括 10 次插入9 次删除
  1. 1 1
      controllers/report.go
  2. 2 2
      controllers/wechat.go
  3. 5 4
      models/report.go
  4. 2 2
      services/sms.go

+ 1 - 1
controllers/report.go

@@ -47,10 +47,10 @@ func (this *ReportController) IsShow() {
 		br.ErrMsg = "获取失败,Err:" + err.Error()
 		br.ErrMsg = "获取失败,Err:" + err.Error()
 		return
 		return
 	}
 	}
-
 	if total > 0 {
 	if total > 0 {
 		resp.IsYanxuanSpecialAuthor = true
 		resp.IsYanxuanSpecialAuthor = true
 	}
 	}
+	//resp.IsShowMobileAndEmailButton = true
 	resp.IsShowWxPay = utils.IS_SHOW_WX_PAY // 是否调取微信支付
 	resp.IsShowWxPay = utils.IS_SHOW_WX_PAY // 是否调取微信支付
 	resp.IsShow = true
 	resp.IsShow = true
 	br.Ret = 200
 	br.Ret = 200

+ 2 - 2
controllers/wechat.go

@@ -306,8 +306,8 @@ func (this *WechatController) GetEmailCode() {
 		return
 		return
 	}
 	}
 	msgCode := utils.GetRandDigit(4)
 	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)
 	result, err := utils.SendEmailByHz(title, content, email)
 	if err != nil {
 	if err != nil {

+ 5 - 4
models/report.go

@@ -371,10 +371,11 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
 }
 }
 
 
 type IsShow struct {
 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 {
 type SearchTxt struct {

+ 2 - 2
services/sms.go

@@ -11,7 +11,7 @@ import (
 
 
 func SendSmsCode(mobile, vcode string) bool {
 func SendSmsCode(mobile, vcode string) bool {
 	flag := false
 	flag := false
-	tplId := "250078"
+	tplId := "262126"
 	result, err := sendSms(mobile, tplId, vcode)
 	result, err := sendSms(mobile, tplId, vcode)
 	if err != nil {
 	if err != nil {
 		fmt.Println("发送短信失败")
 		fmt.Println("发送短信失败")
@@ -96,7 +96,7 @@ func sendSmsGj(mobile, code, areaNum string) (rs []byte, err error) {
 	param := url.Values{}
 	param := url.Values{}
 	//配置请求参数,方法内部已处理urlencode问题,中文参数可以直接传参
 	//配置请求参数,方法内部已处理urlencode问题,中文参数可以直接传参
 	param.Set("mobile", mobile)           //接受短信的用户手机号码
 	param.Set("mobile", mobile)           //接受短信的用户手机号码
-	param.Set("tplId", "12335")           //您申请的短信模板ID,根据实际情况修改
+	param.Set("tplId", "12867")           //您申请的短信模板ID,根据实际情况修改
 	param.Set("tplValue", "#code#="+code) //您设置的模板变量,根据实际情况
 	param.Set("tplValue", "#code#="+code) //您设置的模板变量,根据实际情况
 	param.Set("key", utils.JhGjAppKey)    //应用APPKEY(应用详细页查询)
 	param.Set("key", utils.JhGjAppKey)    //应用APPKEY(应用详细页查询)
 	param.Set("areaNum", areaNum)         //应用APPKEY(应用详细页查询)
 	param.Set("areaNum", areaNum)         //应用APPKEY(应用详细页查询)