This commit is contained in:
richboo111
2023-05-12 15:47:50 +08:00
parent fdef98fb4b
commit 59d62adb3f
3 changed files with 55 additions and 53 deletions

View File

@@ -3,6 +3,9 @@ package auto_delivery
import (
"crypto/rand"
"encoding/json"
"math/big"
"strings"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler/defsch"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
@@ -10,8 +13,6 @@ import (
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/globals"
"math/big"
"strings"
)
var riderListInfo = make(map[string][]map[string]string, 0)
@@ -129,6 +130,8 @@ func AutoSettingFakeDelivery() {
return
}
}
globals.SugarLogger.Debug("==========%s,%d", riderKey, len(riderListInfo[riderKey]))
globals.SugarLogger.Debug("==========%s", utils.Format4Output(riderListInfo[riderKey], false))
randNumber, _ := rand.Int(rand.Reader, big.NewInt(int64(len(riderListInfo[riderKey]))))
randTime := randNumber.Int64()
if randTime < 0 {