|
@@ -126,6 +126,15 @@ func (this *CourseManage) GetDetail() error {
|
|
|
if dotype == "1" { //获取订单信息
|
|
|
if len(*res) > 0 {
|
|
|
resInv := cutil.Mysql.FindOne("apply_invoice", map[string]interface{}{"order_id": (*res)["id"]}, "", "apply_date desc")
|
|
|
+ pay_way := (*res)["pay_way"]
|
|
|
+ var dataBase = "ali_pay"
|
|
|
+ if strings.Index(pay_way.(string), "wx") > -1 {
|
|
|
+ dataBase = "weixin_pay"
|
|
|
+ }
|
|
|
+ payMap := map[string]interface{}{}
|
|
|
+ payMap["out_trade_no"] = (*res)["out_trade_no"]
|
|
|
+ payInfo := cutil.Mysql.FindOne(dataBase, payMap, "", "create_time desc")
|
|
|
+ (*res)["transaction_id"] = (*payInfo)["transaction_id"]
|
|
|
filter_id := qutil.ObjToString((*res)["filter_id"])
|
|
|
if strings.Contains(filter_id, "ABC") {
|
|
|
filter_id = qutil.DecodeArticleId2ByCheck(filter_id)[0]
|