Pull Requests 0 提交歷史 1032 版本發佈 0

暫無描述

Kimi.Huang: 3a0fde0866 :art: Makemigrations 6 年之前
..
0001_initial.py 44a6cdf337 Statistic 8 年之前
0002_provincesalestatisticinfo.py 4efb7f6f87 Statistic 8 年之前
0003_provincesalestatisticinfo_position.py 08557546f6 Add position for ProvinceSaleStatisticInfo 8 年之前
0004_auto_20180426_0952.py 7c4311f505 Change ymd as IntegerField 8 年之前
0005_auto_20180508_1057.py c7b55979c0 Add province code/name for DistributorInfo 8 年之前
0006_auto_20180508_1830.py 537c495621 Statistic 8 年之前
0007_auto_20180517_1819.py 2988703c52 Update 8 年之前
0008_auto_20181007_0322.py de639f39e8 Makemigrations 8 年之前
0009_saleclerksalestatisticinfo.py 61ba06b9aa V2 TJ 8 年之前
0010_auto_20181025_2137.py deb84bfcb5 Makemigrations 8 年之前
0011_consumeuserstatisticinfo.py e9f8a35b9d Makemigrations 8 年之前
0012_auto_20181117_0052.py b8784eee8a Makemigrations 8 年之前
0013_auto_20190403_1917.py 9e6c98109a user's num 7 年之前
0014_consumemodelsalestatisticinfo_users.py 3a0fde0866 :art: Makemigrations 6 年之前
0015_modelsalestatisticinfo_saleclerks.py 3a0fde0866 :art: Makemigrations 6 年之前
__init__.py 44a6cdf337 Statistic 8 年之前
fix user join group by session after remove · 80a3496489 - Gogs: Go Git Service

fix user join group by session after remove

Brightcells 10 年之前
父節點
當前提交
80a3496489
共有 1 個文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      photo/views.py

+ 4 - 0
photo/views.py

@@ -182,6 +182,10 @@ def session_join_api(request):
182 182
         'user_status': GroupUserInfo.PASSED,
183 183
         'passed_at': tc.utc_datetime(),
184 184
     })
185
+    if not group_user_created:
186
+        group_user.current_id = current_id
187
+        group_user.user_status = GroupUserInfo.PASSED
188
+        group_user.save()
185 189
 
186 190
     # Redis 群组用户数据缓存
187 191
     group_users = set_group_users_info(group) if group_user_created else get_group_users_info(group_id, user_id)