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