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 }