1
This commit is contained in:
parent
7f03c7ef38
commit
703bf2f36f
@ -117,6 +117,7 @@ class BaseEventProcess {
|
||||
}
|
||||
|
||||
async callGameApi(params, checkCb) {
|
||||
const logHead = this.genLogHead('callGameApi');
|
||||
while (true) {
|
||||
try {
|
||||
const nowTime = utils.getUtcTime();
|
||||
@ -127,6 +128,7 @@ class BaseEventProcess {
|
||||
params['_timestamp'] = nowTime;
|
||||
delete params['_sign'];
|
||||
}
|
||||
console.log(params);
|
||||
const sign = utils.normalMd5UrlSign(params, secretKey);
|
||||
params['_sign'] = sign;
|
||||
{
|
||||
@ -134,6 +136,7 @@ class BaseEventProcess {
|
||||
(
|
||||
app,
|
||||
'insert',
|
||||
't_callback',
|
||||
[
|
||||
['cb_uuid', cbUuid],
|
||||
['params', utils.jsonEncode(params)],
|
||||
@ -144,12 +147,16 @@ class BaseEventProcess {
|
||||
]
|
||||
);
|
||||
if (err) {
|
||||
await utils.sleep(5000 + utils.randRange(500, 1500));
|
||||
utils.safeDumpErrStack(err);
|
||||
log.error(logHead + err);
|
||||
await utils.sleep(10000 + utils.randRange(500, 1500));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const {err, data} = await http.get(config('gameapi_url'), params);
|
||||
if (err) {
|
||||
utils.safeDumpErrStack(err);
|
||||
log.error(logHead +err);
|
||||
await utils.sleep(5000 + utils.randRange(500, 1500));
|
||||
continue;
|
||||
}
|
||||
|
2
third_party/j7
vendored
2
third_party/j7
vendored
@ -1 +1 @@
|
||||
Subproject commit 87102455199c0f192cb26a90ecf399b25c959bd2
|
||||
Subproject commit e6d0257c22a8b42fa417b7711c3f84eafe426e8b
|
Loading…
x
Reference in New Issue
Block a user