|
@@ -339,6 +339,15 @@ func (this *UserAccount) GetAccountInfo() {
|
|
|
otherMail = qutil.ObjToString((*userMsg)["s_myemail"])
|
|
|
}
|
|
|
}
|
|
|
+ reportMail := ""
|
|
|
+ orders1 := util.Mysql.SelectBySql(`SELECT user_mail from dataexport_order where user_id=? and order_status=1 and (product_type='投标企业信用报告' or product_type='企业中标分析报告下载包' or product_type='业主采购分析报告下载包' or
|
|
|
+ product_type = '市场分析定制报告下载包') order by create_time desc limit 1`, userId)
|
|
|
+ if orders != nil && len(*orders1) == 1 {
|
|
|
+ reportMail = qutil.ObjToString((*orders1)[0]["user_mail"])
|
|
|
+ }
|
|
|
+ if reportMail == "" {
|
|
|
+ reportMail = qutil.ObjToString((*userMsg)["s_my_email"])
|
|
|
+ }
|
|
|
return map[string]interface{}{
|
|
|
"userId": encrypt.EncodeArticleId(userId),
|
|
|
"email": qutil.ObjToString((*userMsg)["s_myemail"]),
|
|
@@ -354,6 +363,7 @@ func (this *UserAccount) GetAccountInfo() {
|
|
|
"breakRenewTip": breakRenewTip,
|
|
|
"otherMail": otherMail, //从数据导出填写的邮箱或者从数据定制服务这里获取的邮箱
|
|
|
"expBinding": qutil.IntAll((*userMsg)["experience_binding"]),
|
|
|
+ "reportMail": reportMail,
|
|
|
}, nil
|
|
|
}()
|
|
|
this.ServeJson(NewResult(rData, errMsg))
|