1、触发时间修改
2、用户增加父级邀请人
This commit is contained in:
@ -686,8 +686,11 @@ func processTakeProfitOrder(db *gorm.DB, spotApi SpotRestApi, order models.LineP
|
||||
logger.Error("现货止盈下单失败,更新状态失败:", order.OrderSn, " err:", err)
|
||||
}
|
||||
} else {
|
||||
if err := db.Model(&DbModels.LinePreOrder{}).Where("id =? ", order.Id).Updates(map[string]interface{}{"trigger_time": time.Now()}).Error; err != nil {
|
||||
logger.Error("更新现货止盈单触发事件 ordersn:", order.OrderSn)
|
||||
}
|
||||
if err := db.Model(&DbModels.LinePreOrder{}).Where("id = ? and status ='0'", order.Id).
|
||||
Updates(map[string]interface{}{"status": "1", "num": order.Num, "trigger_time": time.Now()}).Error; err != nil {
|
||||
Updates(map[string]interface{}{"status": "1", "num": order.Num}).Error; err != nil {
|
||||
logger.Error("现货止盈下单成功,更新状态失败:", order.OrderSn, " err:", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user