|
@@ -7,6 +7,7 @@ import (
|
|
|
"fmt"
|
|
|
"log"
|
|
|
qutil "qfw/util"
|
|
|
+ "qfw/util/jy"
|
|
|
"regexp"
|
|
|
"strconv"
|
|
|
"strings"
|
|
@@ -67,7 +68,13 @@ func (this *OrderListDetails) GetOrderPayAllMsg() {
|
|
|
if uData == nil || len(*uData) == 0 || !ok {
|
|
|
return &entity.FuncResult{false, errors.New("数据库查询异常"), nil}
|
|
|
}
|
|
|
+ //TODO 字段添加完 可以去掉注释
|
|
|
+ // uData := util.Mysql.FindOne(tableName_order, query, "vip_starttime,vip_endtime", "")
|
|
|
+ // if uData == nil || len(*uData) == 0 {
|
|
|
+ // return &entity.FuncResult{false, errors.New("数据库查询异常"), nil}
|
|
|
+ // }
|
|
|
//
|
|
|
+ log.Println("udata:", uData)
|
|
|
if qutil.IntAll((*oData)["order_status"]) != 1 {
|
|
|
return &entity.FuncResult{true, nil, map[string]interface{}{
|
|
|
"order": oData,
|
|
@@ -262,6 +269,7 @@ func (o *OrderListDetails) ApplyInvoice() error {
|
|
|
|
|
|
//设置邮箱-发送验证码
|
|
|
func (o *OrderListDetails) SetEmail() {
|
|
|
+ log.Println("--")
|
|
|
email := o.GetString("email")
|
|
|
userId := qutil.ObjToString(o.GetSession("userId"))
|
|
|
if userId != "" {
|
|
@@ -302,7 +310,7 @@ func (o *OrderListDetails) SetEmail() {
|
|
|
o.SetSession("CreatEVerifyTime", time.Now().Unix())
|
|
|
log.Println("==========", verifyStr, "================", o.GetSession("CreatEVerifyTime"), "==============")
|
|
|
//发送邮箱验证码
|
|
|
- go util.SendMailIdentCode(email, verifyStr, config.GmailAuth)
|
|
|
+ go jy.SendMailIdentCode(email, verifyStr, config.GmailAuth)
|
|
|
o.T["success"] = true
|
|
|
} else {
|
|
|
o.T["success"] = false
|
|
@@ -310,7 +318,6 @@ func (o *OrderListDetails) SetEmail() {
|
|
|
o.T["time"] = timeSpaceing
|
|
|
o.T["errMsg"] = "验证码发送次数已达到今日上限"
|
|
|
}
|
|
|
-
|
|
|
} else {
|
|
|
o.T["success"] = false
|
|
|
o.T["errCode"] = 2
|
|
@@ -348,6 +355,7 @@ func (o *OrderListDetails) EmailOperation() {
|
|
|
operation := o.GetString("operation")
|
|
|
email := o.GetString("email")
|
|
|
userId := qutil.ObjToString(o.GetSession("userId"))
|
|
|
+ log.Println("userid---", userId)
|
|
|
bo := false
|
|
|
if email != "" {
|
|
|
switch operation {
|