...
|
...
|
@@ -134,10 +134,10 @@ const redpac = { |
|
|
if (result && result.data) {
|
|
|
sendMessage(0, {}, {succeedTimes: result.data.amount || 0}, 0);
|
|
|
} else {
|
|
|
sendMessage(0, {}, {message: result.message || 'no result', stack: Object.assign({}, {code: result.code})}, 1);
|
|
|
sendMessage(0, {}, {succeedTimes: result.data.amount || 0}, 0);
|
|
|
}
|
|
|
|
|
|
return res.json(result);
|
|
|
return res.json(result || {});
|
|
|
}).catch(e => {
|
|
|
console.log('error:', e);
|
|
|
sendMessage(0, {}, {message: e.message || 'interface error', stack: e}, 1);
|
...
|
...
|
|