Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
153cf53dd4
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      app/customer/svc/svc_curl_smart_pay.go

+ 15
- 0
app/customer/svc/svc_curl_smart_pay.go View File

@@ -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
}



Loading…
Cancel
Save