|
@@ -627,6 +627,19 @@ func (o *OrderListDetails) Datas(sql string, pageNum, pagesize_max int) (haveNex
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //超时关闭订单
|
|
|
+ create_time_str := qutil.ObjToString(result[i]["create_time"])
|
|
|
+ create_time, _ := time.ParseInLocation(Date_Full_Layout, create_time_str, time.Local)
|
|
|
+
|
|
|
+ //是否满足可开票
|
|
|
+ var isCanInvoic bool
|
|
|
+ if create_time.Unix() > config.InvoiceConfig.Order_createtime {
|
|
|
+ //剩余可开票金额
|
|
|
+ isCanInvoic = IsAllowInvoice(result[i])
|
|
|
+ }
|
|
|
+ result[i]["is_can_invoice"] = isCanInvoic
|
|
|
+ //是否存在可查看发票
|
|
|
+ result[i]["invoice_show"] = len(ShowList(qutil.InterfaceToStr(result[i]["order_code"]))) > 0
|
|
|
if qutil.ObjToString(result[i]["pay_way"]) == "transferAccounts" {
|
|
|
if qutil.IntAll(result[i]["course_status"]) == 2 || qutil.IntAll(result[i]["course_status"]) == 4 {
|
|
|
continue
|
|
@@ -637,9 +650,7 @@ func (o *OrderListDetails) Datas(sql string, pageNum, pagesize_max int) (haveNex
|
|
|
result[i]["userLotteryId"] = encrypt.SE.Encode2Hex(qutil.ObjToString(result[i]["d_relation_id"]))
|
|
|
}
|
|
|
delete(result[i], "d_relation_id")
|
|
|
- //超时关闭订单
|
|
|
- create_time_str := qutil.ObjToString(result[i]["create_time"])
|
|
|
- create_time, _ := time.ParseInLocation(Date_Full_Layout, create_time_str, time.Local)
|
|
|
+
|
|
|
var create_time_stamp int64 = 0
|
|
|
order_countdown := config.Config.OrderCountdown //配置文件读取
|
|
|
if strings.Contains(qutil.ObjToString(order_countdown), "h") {
|
|
@@ -663,15 +674,7 @@ func (o *OrderListDetails) Datas(sql string, pageNum, pagesize_max int) (haveNex
|
|
|
}
|
|
|
//新增最后开票
|
|
|
//result[i]["source"] = LastInvoiceSource(qutil.InterfaceToStr(result[i]["order_code"])) p537 用户可查看所有发票
|
|
|
- //是否满足可开票
|
|
|
- var isCanInvoic bool
|
|
|
- if create_time.Unix() > config.InvoiceConfig.Order_createtime {
|
|
|
- //剩余可开票金额
|
|
|
- isCanInvoic = IsAllowInvoice(result[i])
|
|
|
- }
|
|
|
- result[i]["is_can_invoice"] = isCanInvoic
|
|
|
- //是否存在可查看发票
|
|
|
- result[i]["invoice_show"] = len(ShowList(qutil.InterfaceToStr(result[i]["order_code"]))) > 0
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
haveNextPage = len(result) >= pagesize_max
|