Сохранение тела сообщения после предобработки сервером приложений
This commit is contained in:
parent
00b3f1f8aa
commit
cb95f45913
@ -140,7 +140,13 @@ const appProcess = async prms => {
|
|||||||
if (!sCheckResult) {
|
if (!sCheckResult) {
|
||||||
//Применим её
|
//Применим её
|
||||||
if (!_.isUndefined(resBefore.options)) options = _.cloneDeep(resBefore.options);
|
if (!_.isUndefined(resBefore.options)) options = _.cloneDeep(resBefore.options);
|
||||||
if (!_.isUndefined(resBefore.blMsg)) prms.queue.blMsg = resBefore.blMsg;
|
if (!_.isUndefined(resBefore.blMsg)) {
|
||||||
|
prms.queue.blMsg = resBefore.blMsg;
|
||||||
|
await dbConn.setQueueMsg({
|
||||||
|
nQueueId: prms.queue.nId,
|
||||||
|
blMsg: prms.queue.blMsg
|
||||||
|
});
|
||||||
|
}
|
||||||
if (!_.isUndefined(resBefore.context)) prms.service.context = _.cloneDeep(resBefore.context);
|
if (!_.isUndefined(resBefore.context)) prms.service.context = _.cloneDeep(resBefore.context);
|
||||||
} else {
|
} else {
|
||||||
//Или расскажем об ошибке
|
//Или расскажем об ошибке
|
||||||
@ -149,8 +155,7 @@ const appProcess = async prms => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Отправляем сообщение удалённому серверу
|
//Отправляем сообщение удалённому серверу
|
||||||
//let serverResp = await rqp(options);
|
let serverResp = await rqp(options);
|
||||||
serverResp = { state: "OK" };
|
|
||||||
_.extend(prms, { serverResp });
|
_.extend(prms, { serverResp });
|
||||||
//Выполняем обработчик "После" (если он есть)
|
//Выполняем обработчик "После" (если он есть)
|
||||||
if (prms.function.sAppSrvAfter) {
|
if (prms.function.sAppSrvAfter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user