This commit is contained in:
aozhiwei 2024-07-29 09:29:53 +08:00
parent 3bfc9b0ef2
commit 3a0348635c

View File

@ -1,7 +1,7 @@
package task
import (
//"q5"
"q5"
"f5"
"main/constant"
"fmt"
@ -42,5 +42,24 @@ ORDER BY idx LIMIT 1000
}
func (this *recharge) deliverGoods(ds *f5.DataSet) bool {
return true
var result = false
orderId := ds.GetByName("order_id")
f5.GetGoStyleDb().OrmSelectOne(
constant.GAME_DB,
"t_recharge_order",
[][]string{
{"order_id", orderId},
},
func (err error, ds *f5.DataSet) {
if err != nil {
result = false
return
}
status := q5.ToInt32(ds.GetByName("stauts"))
if status != 0 {
result = true
return
}
})
return result
}