From 153cf53dd4816c5ec4120fd9ad9eeb3fe1d2dd6a Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 19 Sep 2023 21:00:49 +0800 Subject: [PATCH] update --- app/customer/svc/svc_curl_smart_pay.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/customer/svc/svc_curl_smart_pay.go b/app/customer/svc/svc_curl_smart_pay.go index 980f203..6f493e0 100644 --- a/app/customer/svc/svc_curl_smart_pay.go +++ b/app/customer/svc/svc_curl_smart_pay.go @@ -595,6 +595,21 @@ func CurlSelfSupportForSchoolOrderDebtRepay(args md.CurlSelfSupportForSchoolOrde err = errors.New("请求智慧餐厅支付 异常/失败") 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 }