This commit is contained in:
suyl
2021-07-23 14:53:02 +08:00
parent 78a191a0c5
commit a3b287d5e8
2 changed files with 9 additions and 10 deletions

View File

@@ -71,15 +71,14 @@ func CreateOrder(tokenInfo *model.TokenInfo, orderType, origin, thingID, typeID
globals.SugarLogger.Debugf("CreateOrder payPrice: %v", payPrice)
orderID = utils.Int64ToStr(putils.GenOrderNo())
payOrder := &model.PayOrder{
CreatedAt: &now,
OrderID: orderID,
PayPrice: payPrice,
UserID: tokenInfo.User.UserID,
OrderType: orderType,
Origin: origin,
ThingID: thingID,
TypeID: typeID,
OriginalData: "",
CreatedAt: &now,
OrderID: orderID,
PayPrice: payPrice,
UserID: tokenInfo.User.UserID,
OrderType: orderType,
Origin: origin,
ThingID: thingID,
TypeID: typeID,
}
err = dao.Insert(db, payOrder)
return orderID, err