WuYiPei 5 年 前
コミット
6400e6182a
1 ファイル変更0 行追加5 行削除
  1. 0 5
      Controller/DetectController.py

+ 0 - 5
Controller/DetectController.py

@@ -166,14 +166,12 @@ class NotificationView(View):
         do_apns_code = ''
         do_fcm_code = ''
         do_jpush_code = ''
-        m_code = ''
         for up in redis_list:
             push_type = up['push_type']
             appBundleId = up['appBundleId']
             token_val = up['token_val']
             lang = up['lang']
             tz = up['tz']
-            m_code = up['m_code']
             # 发送标题
             msg_title = self.get_msg_title(appBundleId=appBundleId, nickname=nickname)
             # 发送内容
@@ -227,7 +225,6 @@ class NotificationView(View):
         if is_st == '0' or is_st == '2':
             print("is_st=0or2")
             for up in redis_list:
-                up['m-code'] = m_code
                 up['do_apns_code'] = do_apns_code
                 up['do_fcm_code'] = do_fcm_code
                 up['do_jpush_code'] = do_jpush_code
@@ -249,7 +246,6 @@ class NotificationView(View):
             # 设置此签名URL在60秒内有效。
             url = bucket.sign_url('PUT', obj, 7200)
             for up in redis_list:
-                up['m-code'] = m_code
                 up['do_apns_code'] = do_apns_code
                 up['do_fcm_code'] = do_fcm_code
                 up['do_jpush_code'] = do_jpush_code
@@ -278,7 +274,6 @@ class NotificationView(View):
                 img_url_list.append(url)
 
             for up in redis_list:
-                up['m-code'] = m_code
                 up['do_apns_code'] = do_apns_code
                 up['do_fcm_code'] = do_fcm_code
                 up['do_jpush_code'] = do_jpush_code