暂时存一下

This commit is contained in:
苏尹岚
2020-08-20 17:32:16 +08:00
parent 08ddd8424c
commit 97c3fc87cc
4 changed files with 51 additions and 2 deletions

View File

@@ -323,6 +323,23 @@ func Pay4Order(ctx *jxcontext.Context, orderID int64, payType int, vendorPayType
return orderPay, err
}
func Pay4User(ctx *jxcontext.Context, thingID, payType int, vendorPayType string) (orderPay *model.OrderPay, err error) {
var (
db = dao.GetDB()
)
switch payType {
case model.PayTypeTL_DiscountCard:
dao.QueryConfigs(db, "会员折扣卡", model.ConfigTypeDiscountCard, "")
// if orderPay, err = pay4UserByTL(ctx, thingID, vendorPayType); err == nil && orderPay != nil {
// dao.WrapAddIDCULDEntity(orderPay, ctx.GetUserName())
// err = dao.CreateEntity(dao.GetDB(), orderPay)
// }
default:
err = fmt.Errorf("支付方式:%d当前不支持", payType)
}
return orderPay, err
}
func time2ShortTimeStr(t time.Time) string {
return t.Format("15:04")
}