|
@@ -29,6 +29,7 @@ from Model.models import UidPushModel, SysMsgModel, DeviceSharePermission, Devic
|
|
|
from Object.ETkObject import ETkObject
|
|
|
from Object.OCIObjectStorage import OCIObjectStorage
|
|
|
from Object.UidTokenObject import UidTokenObject
|
|
|
+from Object.enums.ConstantEnum import ConstantEnum
|
|
|
from Object.enums.EventTypeEnum import EventTypeEnumObj
|
|
|
from Object.utils import LocalDateTimeUtil
|
|
|
from Service.CommonService import CommonService
|
|
@@ -454,10 +455,10 @@ class DevicePushService:
|
|
|
push_result = PushObject.android_jpush(**kwargs)
|
|
|
|
|
|
elif push_type == 3:
|
|
|
- if kwargs["appBundleId"] == "com.ansjer.zccloud_ab":
|
|
|
+ if kwargs["appBundleId"] == ConstantEnum.ZOSI_APP_BUNDLE_ID.value:
|
|
|
huawei_push_object = HuaweiPushObject()
|
|
|
huawei_push_object.send_push_notify_message(**push_kwargs)
|
|
|
- elif kwargs["appBundleId"] == "com.ansjer.commissionf_a":
|
|
|
+ elif kwargs["appBundleId"] == ConstantEnum.VSEES_APP_BUNDLE_ID.value:
|
|
|
vsees_huawei_push_object = VseesHuaweiPushObject()
|
|
|
vsees_huawei_push_object.send_push_notify_message(**push_kwargs)
|
|
|
elif push_type == 4: # android xmpush
|
|
@@ -800,12 +801,12 @@ class DevicePushService:
|
|
|
push_result = PushObject.android_fcm_push_v1(
|
|
|
uid, appBundleId, token_val, n_time, event_type, msg_title, msg_text, uid, channel, image_url)
|
|
|
elif push_type == 3:
|
|
|
- if appBundleId == "com.ansjer.zccloud_ab":
|
|
|
+ if appBundleId == ConstantEnum.ZOSI_APP_BUNDLE_ID.value:
|
|
|
huawei_push_object = HuaweiPushObject()
|
|
|
push_result = huawei_push_object.send_push_notify_message(
|
|
|
token_val=token_val, msg_title=msg_title, msg_text=msg_text, uid=uid, event_type=event_type,
|
|
|
n_time=n_time, image_url=image_url, channel=channel)
|
|
|
- elif appBundleId == "com.ansjer.commissionf_a":
|
|
|
+ elif appBundleId == ConstantEnum.VSEES_APP_BUNDLE_ID.value:
|
|
|
vsees_huawei_push_object = VseesHuaweiPushObject()
|
|
|
push_result = vsees_huawei_push_object.send_push_notify_message(
|
|
|
token_val=token_val, msg_title=msg_title, msg_text=msg_text, uid=uid, event_type=event_type,
|