|
@@ -74,7 +74,7 @@ func (p *DataExportPayAction) SacnPay_WaitPay() error {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if pay_way == "支付宝" {
|
|
} else if pay_way == "支付宝" {
|
|
- payOutTime := now.Add(time.Minute * 2)
|
|
|
|
|
|
+ payOutTime := now.Add(time.Hour * 2)
|
|
if qr_url, tradeno, err := Alipay.GetPayUrl(util.Float64All(orderMoney), util.FormatDate(&payOutTime, util.Date_Full_Layout)); err == nil {
|
|
if qr_url, tradeno, err := Alipay.GetPayUrl(util.Float64All(orderMoney), util.FormatDate(&payOutTime, util.Date_Full_Layout)); err == nil {
|
|
if public.Mysql.Update("dataexport_order", map[string]interface{}{
|
|
if public.Mysql.Update("dataexport_order", map[string]interface{}{
|
|
"id": orderid,
|
|
"id": orderid,
|
|
@@ -123,7 +123,7 @@ func (p *DataExportPayAction) SacnPay_CreateOrder() {
|
|
} else if data_spec == "senior" {
|
|
} else if data_spec == "senior" {
|
|
data_spec = "高级字段包"
|
|
data_spec = "高级字段包"
|
|
}
|
|
}
|
|
- user_mail_status := p.GetSession("EMVerifySucess").(bool)
|
|
|
|
|
|
+ user_mail_status := util.ObjToString(p.GetSession("DataExportVerifyEmail_val")) != ""
|
|
pay_way := p.GetString("pay_way")
|
|
pay_way := p.GetString("pay_way")
|
|
if pay_way == "weixin" {
|
|
if pay_way == "weixin" {
|
|
pay_way = "微信"
|
|
pay_way = "微信"
|
|
@@ -306,7 +306,7 @@ func (p *DataExportPayAction) SacnPay_CreateOrder() {
|
|
}
|
|
}
|
|
} else if pay_way == "支付宝" {
|
|
} else if pay_way == "支付宝" {
|
|
now := time.Now()
|
|
now := time.Now()
|
|
- payOutTime := now.Add(time.Minute * 2)
|
|
|
|
|
|
+ payOutTime := now.Add(time.Hour * 2)
|
|
if qr_url, tradeno, err := Alipay.GetPayUrl(util.Float64All(order_money), util.FormatDate(&payOutTime, util.Date_Full_Layout)); err == nil {
|
|
if qr_url, tradeno, err := Alipay.GetPayUrl(util.Float64All(order_money), util.FormatDate(&payOutTime, util.Date_Full_Layout)); err == nil {
|
|
ordercode := public.GetOrderCode(openId)
|
|
ordercode := public.GetOrderCode(openId)
|
|
orderid := public.Mysql.Insert("dataexport_order", map[string]interface{}{
|
|
orderid := public.Mysql.Insert("dataexport_order", map[string]interface{}{
|