parent
1ae0da11e9
commit
d84f870745
|
|
@ -2,7 +2,6 @@ package data
|
|||
|
||||
import (
|
||||
"PaymentCenter/app/models/orderexceptionmodel"
|
||||
"PaymentCenter/app/utils/snowflake"
|
||||
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
|
@ -18,7 +17,7 @@ func NewOrderExceptionRepo(repo xorm.Interface) *OrderExceptionRepo {
|
|||
}
|
||||
|
||||
func (m *OrderExceptionRepo) InsertOne(orderException *orderexceptionmodel.OrderException) (int64, error) {
|
||||
orderException.Id = snowflake.GetID()
|
||||
|
||||
return m.repo.InsertOne(orderException)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ func (o *OrderNotify) checkOrder() {
|
|||
CreateTime: time.Now(),
|
||||
Status: o.order.Status,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
utils.Log(nil, "异常数据记录失败:%s", err.Error())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue