|
@@ -595,6 +595,21 @@ func CurlSelfSupportForSchoolOrderDebtRepay(args md.CurlSelfSupportForSchoolOrde |
|
|
err = errors.New("请求智慧餐厅支付 异常/失败") |
|
|
err = errors.New("请求智慧餐厅支付 异常/失败") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
mMap, ok := result.Data.(map[string]string) |
|
|
|
|
|
if !ok { |
|
|
|
|
|
if mMap["code"] == "10000" { |
|
|
|
|
|
//TODO::更新订单状态 |
|
|
|
|
|
selfSupportForSchoolOrdDb := db.SelfSupportForSchoolOrd{} |
|
|
|
|
|
selfSupportForSchoolOrdDb.Set(args.OutOrderNo) |
|
|
|
|
|
ord, err1 := selfSupportForSchoolOrdDb.GetSelfSupportForSchoolOrd() |
|
|
|
|
|
if err1 != nil { |
|
|
|
|
|
err = err1 |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
ord.OrderStatus = 2 |
|
|
|
|
|
selfSupportForSchoolOrdDb.SelfSupportForSchoolOrdUpdate(ord, "order_status") |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
return nil, result.Data |
|
|
return nil, result.Data |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|