aa
This commit is contained in:
@@ -2443,16 +2443,16 @@ func CreateStoreAcctOrder(ctx *jxcontext.Context, orderType, storeID, price int)
|
||||
dao.CreateEntity(db, storeAcct)
|
||||
}
|
||||
|
||||
order := &model.GoodsOrder{
|
||||
order := &model.StoreAcctOrder{
|
||||
VendorOrderID: utils.Int64ToStr(jxutils.GenOrderNo()),
|
||||
UserID: ctx.GetUserID(),
|
||||
StoreID: storeID,
|
||||
OrderType: orderType,
|
||||
Status: model.OrderStatusWait4Pay,
|
||||
ActualPayPrice: int64(price),
|
||||
OrderCreatedAt: time.Now(),
|
||||
ActualPayPrice: price,
|
||||
VendorID: model.VendorIDJX,
|
||||
}
|
||||
dao.WrapAddIDCULEntity(order, ctx.GetUserName())
|
||||
dao.Begin(db)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
|
||||
Reference in New Issue
Block a user