瀏覽代碼

update

add_mode
DengBiao 1 年之前
父節點
當前提交
153cf53dd4
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. +15
    -0
      app/customer/svc/svc_curl_smart_pay.go

+ 15
- 0
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
}



Loading…
取消
儲存