This commit is contained in:
aozhiwei 2024-06-14 17:06:04 +08:00
parent e304891144
commit f532c9fa5b

View File

@ -110,6 +110,7 @@ func (this* taskMgr) orderUpdatedCb(ds *f5.DataSet) bool {
rawData := ds.GetByName("raw_data") rawData := ds.GetByName("raw_data")
p := new(common.OrderUpdatedEvent) p := new(common.OrderUpdatedEvent)
err := q5.DecodeJson(rawData, &p) err := q5.DecodeJson(rawData, &p)
netId := 13473
if err == nil { if err == nil {
updateFields := [][]string{ updateFields := [][]string{
{"order_id", p.Data.Id}, {"order_id", p.Data.Id},
@ -127,7 +128,7 @@ func (this* taskMgr) orderUpdatedCb(ds *f5.DataSet) bool {
{"order_id", p.Data.Id}, {"order_id", p.Data.Id},
{"chain", p.Chain}, {"chain", p.Chain},
{"status", p.Status}, {"status", p.Status},
{"net_id", "100"}, {"net_id", q5.ToString(netId)},
{"token_id", p.Sell[0].TokenId}, {"token_id", p.Sell[0].TokenId},
{"contract_address", p.Sell[0].ContractAddress}, {"contract_address", p.Sell[0].ContractAddress},
{"start_time", q5.ToString(p.StartTime)}, {"start_time", q5.ToString(p.StartTime)},
@ -143,7 +144,7 @@ func (this* taskMgr) orderUpdatedCb(ds *f5.DataSet) bool {
constant.BCNFT_DB, constant.BCNFT_DB,
"t_order", "t_order",
[][]string{ [][]string{
{"net_id", "100"}, {"net_id", q5.ToString(netId)},
{"contract_address", p.Sell[0].ContractAddress}, {"contract_address", p.Sell[0].ContractAddress},
{"token_id", p.Sell[0].TokenId}, {"token_id", p.Sell[0].TokenId},
}, },