@steedos-labs/plugin-workflow 3.0.0-beta.21 → 3.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -553,7 +553,7 @@ pushManager.checkMailFromNameLength = function (name) {
|
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
// TODO 手机推送
|
|
556
|
-
pushManager.send_message_by_raix_push = async function (data) {
|
|
556
|
+
pushManager.send_message_by_raix_push = async function (data, lang) {
|
|
557
557
|
if (process.env.STEEDOS_DEBUG_DISABLE_PUSHMANAGER || !data["data"]) {
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
@@ -590,7 +590,7 @@ pushManager.send_message_by_raix_push = async function (data) {
|
|
|
590
590
|
}
|
|
591
591
|
let notificationDoc = {
|
|
592
592
|
name: notification.text,
|
|
593
|
-
body: '
|
|
593
|
+
body: t('CustomLabels.approval_workflow', {}, lang),
|
|
594
594
|
related_to: {
|
|
595
595
|
o: "instances",
|
|
596
596
|
ids: [notification.payload?.instance]
|
|
@@ -631,7 +631,7 @@ pushManager.send_message_by_raix_push = async function (data) {
|
|
|
631
631
|
};
|
|
632
632
|
|
|
633
633
|
//steedos_ids 必须为数组 ; body 如果有,则必须为Hash
|
|
634
|
-
pushManager.send_message = function (steedos_ids, body) {
|
|
634
|
+
pushManager.send_message = function (steedos_ids, body, current_user_info, lang) {
|
|
635
635
|
if (process.env.STEEDOS_DEBUG_DISABLE_PUSHMANAGER) {
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
@@ -651,7 +651,7 @@ pushManager.send_message = function (steedos_ids, body) {
|
|
|
651
651
|
data.data = body;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
pushManager.send_message_by_raix_push(data);
|
|
654
|
+
pushManager.send_message_by_raix_push(data, lang);
|
|
655
655
|
};
|
|
656
656
|
|
|
657
657
|
// TODO处理发送手机短信
|
|
@@ -780,7 +780,7 @@ pushManager.send_instance_notification = async function (send_from, instance, de
|
|
|
780
780
|
await pushManager.send_email_to_SMTP(title.email, content, to_user, from_user);
|
|
781
781
|
|
|
782
782
|
// Send Push Notification
|
|
783
|
-
await pushManager.send_message([to_user.steedos_id], push_body, current_user_info);
|
|
783
|
+
await pushManager.send_message([to_user.steedos_id], push_body, current_user_info, lang);
|
|
784
784
|
|
|
785
785
|
// Send SMS
|
|
786
786
|
if (['reassign_new_inbox_users', 'submit_pending_rejected_applicant_inbox', 'submit_pending_rejected_inbox', 'submit_pending_inbox', 'first_submit_inbox', 'return_pending_inbox'].includes(send_from)) {
|