aa
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user