1
This commit is contained in:
parent
c58f07f496
commit
196609930d
@ -105,6 +105,10 @@ class BaseEventProcess {
|
||||
async callGameApi(params, checkCb) {
|
||||
while (true) {
|
||||
try {
|
||||
const nowTime = utils.getUtcTime();
|
||||
params['_timestamp'] = nowTime;
|
||||
delete params['_sign'];
|
||||
params['_sign'] = utils.normalMd5UrlSign(params, config('cb_secret_key'));
|
||||
const {err, data} = await http.get(config('gameapi_url'), params);
|
||||
if (err) {
|
||||
await utils.sleep(3000 + utils.randRange(500, 1500));
|
||||
|
Loading…
x
Reference in New Issue
Block a user