1
This commit is contained in:
parent
b031b3fda2
commit
bcd5f914eb
@ -185,23 +185,24 @@ func RepiarHeroQuality() error {
|
|||||||
var resultErr error
|
var resultErr error
|
||||||
nftDatas := []*jccommon.NftIdentityAndExtData{}
|
nftDatas := []*jccommon.NftIdentityAndExtData{}
|
||||||
{
|
{
|
||||||
|
cb := func (err error, ds *f5.DataSet) {
|
||||||
|
resultErr = err
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for ds.Next() {
|
||||||
|
p := new(jccommon.NftIdentityAndExtData)
|
||||||
|
p.LoadFromDb(ds)
|
||||||
|
q5.AppendSlice(&nftDatas, p);
|
||||||
|
}
|
||||||
|
}
|
||||||
f5.GetGoStyleDb().OrmSelect(
|
f5.GetGoStyleDb().OrmSelect(
|
||||||
constant.BCNFT_DB,
|
constant.BCNFT_DB,
|
||||||
"t_nft",
|
"t_nft",
|
||||||
[][]string{
|
[][]string{
|
||||||
{"token_type", q5.ToString(jccommon.NFT_TYPE_CFHERO)},
|
{"token_type", q5.ToString(jccommon.NFT_TYPE_CFHERO)},
|
||||||
},
|
},
|
||||||
func (err error, ds *f5.DataSet) {
|
cb)
|
||||||
resultErr = err
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for ds.Next() {
|
|
||||||
p := new(jccommon.NftIdentityAndExtData)
|
|
||||||
p.LoadFromDb(ds)
|
|
||||||
q5.AppendSlice(&nftDatas, p);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if resultErr == nil {
|
if resultErr == nil {
|
||||||
f5.GetGoStyleDb().OrmSelect(
|
f5.GetGoStyleDb().OrmSelect(
|
||||||
constant.BCNFT_DB,
|
constant.BCNFT_DB,
|
||||||
@ -209,17 +210,7 @@ func RepiarHeroQuality() error {
|
|||||||
[][]string{
|
[][]string{
|
||||||
{"token_type", q5.ToString(jccommon.NFT_TYPE_CFHERO_NORMAL)},
|
{"token_type", q5.ToString(jccommon.NFT_TYPE_CFHERO_NORMAL)},
|
||||||
},
|
},
|
||||||
func (err error, ds *f5.DataSet) {
|
cb)
|
||||||
resultErr = err
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for ds.Next() {
|
|
||||||
p := new(jccommon.NftIdentityAndExtData)
|
|
||||||
p.LoadFromDb(ds)
|
|
||||||
q5.AppendSlice(&nftDatas, p);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
procBatchFunc := func(batch []*jccommon.NftIdentityAndExtData) {
|
procBatchFunc := func(batch []*jccommon.NftIdentityAndExtData) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user