|
@@ -200,7 +200,7 @@ class DevicePushService:
|
|
# push_permission = DevicePushService.check_share_permission(userID_id,
|
|
# push_permission = DevicePushService.check_share_permission(userID_id,
|
|
# params['channel'],params['uid'])
|
|
# params['channel'],params['uid'])
|
|
new_device_info_list.append(cls.created_device_vo(local_date_time, **params))
|
|
new_device_info_list.append(cls.created_device_vo(local_date_time, **params))
|
|
- new_device_info_list.append(cls.get_equipment_info_obj(**params))
|
|
|
|
|
|
+ cls.save_equipment_info(**params)
|
|
userID_ids.append(userID_id)
|
|
userID_ids.append(userID_id)
|
|
params['appBundleId'] = appBundleId
|
|
params['appBundleId'] = appBundleId
|
|
params['token_val'] = token_val
|
|
params['token_val'] = token_val
|
|
@@ -376,7 +376,7 @@ class DevicePushService:
|
|
)
|
|
)
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
- def get_equipment_info_obj(**params):
|
|
|
|
|
|
+ def save_equipment_info(**params):
|
|
kwargs = {
|
|
kwargs = {
|
|
'device_user_id': params['userID_id'],
|
|
'device_user_id': params['userID_id'],
|
|
'event_time': params['n_time'],
|
|
'event_time': params['n_time'],
|
|
@@ -391,7 +391,7 @@ class DevicePushService:
|
|
'event_tag': params['event_tag'],
|
|
'event_tag': params['event_tag'],
|
|
'answer_status': True if params['dealings_type'] == 1 else False
|
|
'answer_status': True if params['dealings_type'] == 1 else False
|
|
}
|
|
}
|
|
- return EquipmentInfoService.random_get_equipment_info_obj(**kwargs)
|
|
|
|
|
|
+ EquipmentInfoService.randoms_insert_equipment_info(**kwargs)
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
def get_msg_title(nickname):
|
|
def get_msg_title(nickname):
|