瀏覽代碼

缓存增加参数

zhangdongming 1 年之前
父節點
當前提交
f77110e7dd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Service/DevicePushService.py

+ 2 - 1
Service/DevicePushService.py

@@ -161,7 +161,8 @@ class DevicePushService:
         # 推送
         if is_app_push:
             msg_key = 'PUSH:MSG:IMAGE:{}:{}:{}'.format(params['uid'], params['channel'], params['n_time'])
-            d_params = {'is_st': params['is_st'], 'storage_location': params['storage_location']}
+            d_params = {'is_st': params['is_st'], 'storage_location': params['storage_location'],
+                        'event_tag': params['event_tag'], 'event_type': params['event_type']}
             RedisObject(3).set_data(msg_key, json.dumps(d_params), 60)
 
             push_kwargs = params['push_kwargs']