xjconline 2 years ago
parent
commit
b19a0a3a85
4 changed files with 478 additions and 10 deletions
  1. 1 0
      src/common/models.py
  2. 2 2
      src/manage/views.py
  3. 455 0
      src/nohup.out
  4. 20 8
      src/weixin/controls.py

+ 1 - 0
src/common/models.py

@@ -589,6 +589,7 @@ class BaikeDetail(models.Model):
     """百科词条详情                                                                    
     """                                                                            
     category_id = models.IntegerField(u"父级id",blank=True,null=True)                
+    category_name = models.CharField(u"父级名称", max_length=255, blank=True,null=True)  
     name = models.CharField(u"词条名称", max_length=255, blank=True,null=True)  
     intro = models.CharField(u"词条简介", max_length=255, blank=True,null=True)  
     content = models.TextField(u"词条详情", max_length=255, blank=True,null=True)  

+ 2 - 2
src/manage/views.py

@@ -1386,7 +1386,7 @@ class BaikeDetailView(cv.AdminView):
         @match_group:"比赛分组"
         """
         qdata = request.json
-        need_params = ["name","content","category_id"]
+        need_params = ["name","content","category_id","category_name"]
         mse = ccf.check_params(*need_params,**qdata)
         if mse:
             raise ce.TipException(mse)
@@ -1410,7 +1410,7 @@ class BaikeDetailView(cv.AdminView):
         @match_group:"比赛分组"
         """
         qdata = request.json
-        need_params = ["id","name","content","category_id"]
+        need_params = ["id","name","content","category_id","category_name"]
         mse = ccf.check_params(*need_params,**qdata)
         if mse:
             raise ce.TipException(mse)

+ 455 - 0
src/nohup.out

@@ -626,3 +626,458 @@ Logged from file basehttp.py, line 124
 [19/Feb/2023 18:04:02] "GET /api/wx/v3/group/rank?id=73&order_by=0&page=1&page_size=50&stock_date=2023-02-17 HTTP/1.1" 200 49797
 /tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
   from cryptography.hazmat.primitives import padding
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+[20/Feb/2023 23:47:23] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[20/Feb/2023 23:47:24] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[20/Feb/2023 23:47:26] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:03:20] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:03:20] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:03:34] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:03:34] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:03:37] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:04:04] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:04:04] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:04:08] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:09:28] code 400, message Bad request version ('\xc0\x13\xc0')
+[21/Feb/2023 00:09:28] You're accessing the development server over HTTPS, but it only supports HTTP.
+
+2023-02-21 00:09:38,273 [django.request:152] [base:get_response] [WARNING]- Not Found: /
+[21/Feb/2023 00:09:38] "GET / HTTP/1.1" 404 74
+2023-02-21 00:13:16,939 [django.request:152] [base:get_response] [WARNING]- Not Found: /
+[21/Feb/2023 00:13:16] "GET / HTTP/1.1" 404 74
+2023-02-21 00:13:17,006 [django.request:152] [base:get_response] [WARNING]- Not Found: /favicon.ico
+[21/Feb/2023 00:13:17] "GET /favicon.ico HTTP/1.1" 404 85
+[21/Feb/2023 00:23:20] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:23:20] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:23:21] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:23:50] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:23:50] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:23:51] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:24:08] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:24:27] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:32:20] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:32:20] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:32:22] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 00:33:28] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 00:33:28] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 00:33:29] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 03:11:58] code 400, message Bad request version ('\x95\xf3\xdd\xb2\xefn\xe4\xd9\xd2\xd8\xe3\x1c\xbe\xca"\xb8\xca\xaaL6/\xd8Iu\xcd\xc6\xd1\x10\x01S\xb8u\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0\'\x00g\xc0')
+[21/Feb/2023 03:11:58] You're accessing the development server over HTTPS, but it only supports HTTP.
+
+2023-02-21 03:11:58,952 [django.request:152] [base:get_response] [WARNING]- Not Found: /
+[21/Feb/2023 03:11:58] "GET / HTTP/1.1" 404 74
+[21/Feb/2023 10:15:12] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 10:15:12] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 10:15:16] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 10:15:17] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 10:15:19] "GET /api/wx/v2/match/list HTTP/1.1" 200 41771
+[21/Feb/2023 10:15:19] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 10:15:20] "GET /api/wx/group/rank/list?match_id=14&stock_date=2023-02-20 HTTP/1.1" 200 54759
+[21/Feb/2023 10:15:24] "GET /api/wx/v2/mine/latest HTTP/1.1" 200 23
+[21/Feb/2023 10:15:43] "GET /api/wx/v3/user/consult/list HTTP/1.1" 200 3588
+[21/Feb/2023 10:16:27] "POST /api/wx/v3/user/consult HTTP/1.1" 200 23
+[21/Feb/2023 10:16:27] "GET /api/wx/v3/user/consult/list HTTP/1.1" 200 3912
+[21/Feb/2023 10:16:41] "POST /api/wx/v3/user/consult HTTP/1.1" 200 23
+[21/Feb/2023 10:16:41] "POST /api/wx/v3/user/consult HTTP/1.1" 200 23
+[21/Feb/2023 10:16:42] "GET /api/wx/v3/user/consult/list HTTP/1.1" 200 4560
+[21/Feb/2023 10:16:42] "GET /api/wx/v3/user/consult/list HTTP/1.1" 200 4560
+[21/Feb/2023 10:16:50] "GET /api/wx/v3/user/consult/list HTTP/1.1" 200 4560
+[21/Feb/2023 10:16:56] "GET /api/wx/user/info?user_id=6531 HTTP/1.1" 200 622
+[21/Feb/2023 10:16:56] "GET /api/wx/v3/user/match/list?user_id=6531 HTTP/1.1" 200 45
+[21/Feb/2023 10:16:57] "GET /api/wx/v2/enum/list HTTP/1.1" 200 590
+[21/Feb/2023 10:34:43] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 10:34:43] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 10:48:44] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 10:48:45] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 10:50:27] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:01:14] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:01:14] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:01:26] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:03:21] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:03:22] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:03:22] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:05:00] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:05:00] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:05:09] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:05:41] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:05:41] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:05:42] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:06:28] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:06:29] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:06:30] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:07:06] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:07:06] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:07:07] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:23:31] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:23:32] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:24:21] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:24:45] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:25:37] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:25:37] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:25:38] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:43:29] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:43:29] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:43:35] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:48:59] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:48:59] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:49:00] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:49:18] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:49:18] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:50:14] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:53:03] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:53:03] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:53:04] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 11:53:53] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 11:53:53] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 11:53:55] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 12:01:15] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 12:01:15] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 7922
+[21/Feb/2023 12:01:19] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 15:23:05] code 400, message Bad request syntax ('\x03\x00\x00\x13\x0e\xe0\x00\x00\x00\x00\x00\x01\x00\x08\x00\x02\x00\x00\x00')
+Traceback (most recent call last):
+  File "/usr/lib/python2.7/logging/__init__.py", line 868, in emit
+    msg = self.format(record)
+  File "/usr/lib/python2.7/logging/__init__.py", line 741, in format
+    return fmt.format(record)
+  File "/usr/local/lib/python2.7/dist-packages/django/utils/log.py", line 192, in format
+    return super(ServerFormatter, self).format(record)
+  File "/usr/lib/python2.7/logging/__init__.py", line 476, in format
+    raise e
+UnicodeDecodeError: 'utf8' codec can't decode byte 0xe0 in position 6: invalid continuation byte
+Logged from file basehttp.py, line 124
+[2023-02-21 15:23:05,337] - Broken pipe from ('94.102.51.31', 43714)
+
+[21/Feb/2023 15:29:57] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 15:29:57] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 4351
+[21/Feb/2023 15:29:58] "GET /api/wx/v2/match/list HTTP/1.1" 200 41771
+[21/Feb/2023 15:29:58] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 15:29:59] "GET /api/wx/group/rank/list?match_id=14&stock_date=2023-02-21 HTTP/1.1" 200 45385
+[21/Feb/2023 15:30:02] "GET /api/wx/group/rank?id=73&order_by=0&page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 48099
+[21/Feb/2023 15:30:14] "GET /api/wx/player/match?id=14&record_id=14115&user_id=22313 HTTP/1.1" 200 27672
+[21/Feb/2023 15:30:14] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=14115 HTTP/1.1" 200 45
+[21/Feb/2023 15:30:17] "GET /api/wx/group/rank?id=74&order_by=0&page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 72664
+[21/Feb/2023 15:30:27] "GET /api/wx/player/match?id=14&record_id=13792&user_id=490 HTTP/1.1" 200 31662
+[21/Feb/2023 15:30:27] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=13792 HTTP/1.1" 200 45
+[21/Feb/2023 15:30:34] "GET /api/wx/player/match?id=14&record_id=13473&user_id=1171 HTTP/1.1" 200 22857
+[21/Feb/2023 15:30:34] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=13473 HTTP/1.1" 200 45
+[21/Feb/2023 15:30:44] "GET /api/wx/group/rank?id=74&order_by=0&page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 72664
+[21/Feb/2023 15:30:54] "GET /api/wx/v2/default/date?match_id=13 HTTP/1.1" 200 33
+[21/Feb/2023 15:30:54] "GET /api/wx/group/rank/list?match_id=13&stock_date=2023-01-20 HTTP/1.1" 200 44755
+[21/Feb/2023 15:30:59] "GET /api/wx/player/match?id=13&record_id=262059&user_id=27330 HTTP/1.1" 200 100506
+[21/Feb/2023 15:30:59] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=262059 HTTP/1.1" 200 45
+[21/Feb/2023 15:31:00] "GET /api/wx/user/info?user_id=27330 HTTP/1.1" 200 992
+[21/Feb/2023 15:31:00] "GET /api/wx/v3/user/match/list?user_id=27330 HTTP/1.1" 200 16876
+[21/Feb/2023 15:31:10] "GET /api/wx/player/match?id=13&record_id=262059&user_id=27330 HTTP/1.1" 200 100506
+[21/Feb/2023 15:31:10] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=262059 HTTP/1.1" 200 45
+[21/Feb/2023 15:31:13] "GET /api/wx/user/info?user_id=27330 HTTP/1.1" 200 992
+[21/Feb/2023 15:31:13] "GET /api/wx/v3/user/match/list?user_id=27330 HTTP/1.1" 200 16876
+[21/Feb/2023 15:31:16] "GET /api/wx/player/match?id=13&record_id=262081&user_id=35288 HTTP/1.1" 200 68194
+[21/Feb/2023 15:31:17] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=262081 HTTP/1.1" 200 45
+[21/Feb/2023 15:31:31] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 15:31:31] "GET /api/wx/group/rank/list?match_id=14&stock_date=2023-02-21 HTTP/1.1" 200 45385
+[21/Feb/2023 15:31:39] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 15:31:39] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 15:31:39] "GET /api/wx/v3/profit/rank/list?match_id=14&page=1&page_size=50&stock_date=2023-02-21&type=win HTTP/1.1" 200 83227
+[21/Feb/2023 15:31:48] "GET /api/wx/v3/profit/rank/list?match_id=14&page=1&page_size=50&stock_date=2023-02-21&type=loss HTTP/1.1" 200 85632
+[21/Feb/2023 15:31:51] "GET /api/wx/user/info?user_id=6622 HTTP/1.1" 200 598
+[21/Feb/2023 15:31:51] "GET /api/wx/v3/user/match/list?user_id=6622 HTTP/1.1" 200 8754
+[21/Feb/2023 15:31:53] "GET /api/wx/player/match?id=14&user_id=6622 HTTP/1.1" 200 20044
+[21/Feb/2023 15:32:02] "GET /api/wx/player/match?id=14&record_id=13673&user_id=6622 HTTP/1.1" 200 20043
+[21/Feb/2023 15:32:02] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=13673 HTTP/1.1" 200 45
+[21/Feb/2023 15:32:07] "GET /api/wx/player/match?id=14&record_id=13673&user_id=6622 HTTP/1.1" 200 20043
+[21/Feb/2023 15:32:08] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=13673 HTTP/1.1" 200 45
+[21/Feb/2023 15:32:13] "GET /api/wx/user/info?user_id=6622 HTTP/1.1" 200 598
+[21/Feb/2023 15:32:13] "GET /api/wx/v3/user/match/list?user_id=6622 HTTP/1.1" 200 8754
+[21/Feb/2023 15:32:20] "GET /api/wx/user/info?user_id=6622 HTTP/1.1" 200 598
+[21/Feb/2023 15:32:20] "GET /api/wx/v3/user/match/list?user_id=6622 HTTP/1.1" 200 8754
+[21/Feb/2023 15:32:26] "GET /api/wx/user/info?user_id=526 HTTP/1.1" 200 830
+[21/Feb/2023 15:32:26] "GET /api/wx/v3/user/match/list?user_id=526 HTTP/1.1" 200 22934
+[21/Feb/2023 15:32:33] "GET /api/wx/player/match?id=13&user_id=526 HTTP/1.1" 200 69148
+[21/Feb/2023 17:10:46] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:10:46] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:11:01] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:11:04] "GET /api/wx/v3/baike/detail?category_id=16 HTTP/1.1" 200 23
+[21/Feb/2023 17:11:08] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:11:52] "GET /api/wx/v3/baike/detail?category_id=16 HTTP/1.1" 200 23
+[21/Feb/2023 17:13:33] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:13:33] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:13:34] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:13:36] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:15:40] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:15:41] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:15:47] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:15:48] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:16:26] "GET /api/wx/v3/baike/detail?category_id=17 HTTP/1.1" 200 23
+[21/Feb/2023 17:17:28] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:17:28] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:17:29] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:17:30] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:17:44] "GET /api/wx/v3/baike/detail?category_id=16 HTTP/1.1" 200 23
+[21/Feb/2023 17:17:45] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:17:47] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:20:45] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:20:45] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:20:46] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:20:47] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:21:41] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:21:41] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:21:49] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:21:50] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:22:39] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:22:39] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:27:35] "GET /api/wx/v3/match/latest HTTP/1.1" 200 36
+[21/Feb/2023 17:33:06] "GET /api/wx/v3/match/latest HTTP/1.1" 200 36
+[21/Feb/2023 17:39:49] "GET /api/wx/v3/match/latest HTTP/1.1" 200 36
+[21/Feb/2023 17:40:04] "POST /api/wx/v3/login HTTP/1.1" 200 134
+[21/Feb/2023 17:40:05] "GET /api/wx/authinfo HTTP/1.1" 200 520
+[21/Feb/2023 17:40:05] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:40:05] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:40:07] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:40:09] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:41:09] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:41:10] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:41:11] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:41:13] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:41:20] "GET /api/wx/v3/baike/detail?category_id=16 HTTP/1.1" 200 23
+[21/Feb/2023 17:41:52] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:41:52] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:41:53] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:41:55] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:42:25] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:42:25] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:42:35] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:42:36] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:42:37] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:42:38] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:43:22] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:43:22] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:43:23] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:43:24] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:43:34] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:44:28] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:44:28] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:44:29] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:44:31] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:44:33] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:44:35] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:46:17] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 17:46:17] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 17:46:28] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 17:46:29] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 17:46:33] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 17:46:33] "GET /api/wx/v3/baike/detail?category_id=16 HTTP/1.1" 200 23
+[21/Feb/2023 17:46:34] "GET /api/wx/v3/baike/detail?category_id=17 HTTP/1.1" 200 23
+[21/Feb/2023 17:46:35] "GET /api/wx/v3/baike/detail?category_id=18 HTTP/1.1" 200 23
+[21/Feb/2023 17:52:30] "GET /api/wx/v3/match/latest HTTP/1.1" 200 36
+[21/Feb/2023 20:11:02] "GET /api/wx/v3/match/latest HTTP/1.1" 200 36
+[21/Feb/2023 20:11:11] "POST /api/wx/v3/login HTTP/1.1" 200 134
+[21/Feb/2023 20:11:11] "GET /api/wx/authinfo HTTP/1.1" 200 520
+[21/Feb/2023 20:11:12] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:11:12] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:11:13] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 20:11:19] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:11:54] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:12:11] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 20:12:12] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:26:07] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:26:07] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:26:16] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 20:26:17] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:27:09] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:27:09] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:27:10] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 20:27:11] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:27:28] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:27:28] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:27:29] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 20:27:30] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+[21/Feb/2023 20:27:38] "GET /api/wx/v3/baike/detail?category_id=15 HTTP/1.1" 200 244
+[21/Feb/2023 20:28:28] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:28:28] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6285
+[21/Feb/2023 20:28:30] "GET /api/wx/v3/stock?id=2078 HTTP/1.1" 200 193
+[21/Feb/2023 20:28:30] "GET /api/wx/v3/stock/players/list?id=2078&page=1&page_size=50 HTTP/1.1" 200 114517
+[21/Feb/2023 20:30:15] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:30:15] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:30:16] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:30:16] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6291
+[21/Feb/2023 20:30:20] "GET /api/wx/v3/stock?id=2078 HTTP/1.1" 200 193
+[21/Feb/2023 20:30:20] "GET /api/wx/v3/stock/players/list?id=2078&page=1&page_size=50 HTTP/1.1" 200 114517
+[21/Feb/2023 20:31:05] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:31:05] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:31:06] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:31:06] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6292
+[21/Feb/2023 20:31:12] "GET /api/wx/v3/stock?id=2078 HTTP/1.1" 200 193
+[21/Feb/2023 20:31:12] "GET /api/wx/v3/stock/players/list?id=2078&page=1&page_size=50 HTTP/1.1" 200 114517
+[21/Feb/2023 20:31:51] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:31:52] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:31:58] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:31:59] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6292
+[21/Feb/2023 20:32:05] "GET /api/wx/v3/stock?id=2078 HTTP/1.1" 200 193
+[21/Feb/2023 20:32:13] "GET /api/wx/v3/stock/players/list?id=2078&page=1&page_size=50 HTTP/1.1" 200 114517
+[21/Feb/2023 20:32:57] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:33:02] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:35:22] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:35:22] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:35:25] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 20:35:25] "GET /api/wx/v3/group/rank?id=73&order_by=0&page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 53177
+[21/Feb/2023 20:35:30] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:35:30] "GET /api/wx/v2/hot/follow/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 17026
+[21/Feb/2023 20:36:46] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:36:46] "GET /api/wx/v3/user/follow/list?page=1&page_size=50 HTTP/1.1" 200 5908
+[21/Feb/2023 20:36:47] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:36:48] "GET /api/wx/v2/hot/follow/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 17026
+[21/Feb/2023 20:37:16] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:37:16] "GET /api/wx/v2/hot/follow/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 17026
+[21/Feb/2023 20:37:45] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:37:45] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 20:37:45] "GET /api/wx/v3/profit/rank/list?match_id=14&page=1&page_size=50&stock_date=2023-02-21&type=win HTTP/1.1" 200 86024
+[21/Feb/2023 20:37:51] "GET /api/wx/user/info?user_id=25383 HTTP/1.1" 200 620
+[21/Feb/2023 20:37:52] "GET /api/wx/v3/user/match/list?user_id=25383 HTTP/1.1" 200 8676
+[21/Feb/2023 20:37:57] "GET /api/wx/player/match?id=14&user_id=25383 HTTP/1.1" 200 25263
+[21/Feb/2023 20:38:05] "GET /api/wx/player/match?id=14&user_id=25383 HTTP/1.1" 200 25263
+[21/Feb/2023 20:38:25] "GET /api/wx/v3/match/latest HTTP/1.1" 200 7028
+[21/Feb/2023 20:38:26] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 20:38:26] "GET /api/wx/v3/profit/rank/list?match_id=14&page=1&page_size=50&stock_date=2023-02-21&type=win HTTP/1.1" 200 86024
+[21/Feb/2023 20:38:28] "GET /api/wx/v3/article/type/list HTTP/1.1" 200 133
+[21/Feb/2023 20:38:29] "GET /api/wx/v2/champion/article/list?isbanner=0 HTTP/1.1" 200 1041315
+[21/Feb/2023 20:38:30] "GET /api/wx/v2/champion/article/list?isbanner=0&type=%E6%AF%8F%E6%97%A5%E7%82%B9%E8%AF%84 HTTP/1.1" 200 45
+[21/Feb/2023 20:38:33] "GET /api/wx/v3/baike/category/list HTTP/1.1" 200 2888
+[21/Feb/2023 20:38:38] "GET /api/wx/v3/baike/detail?category_id=14 HTTP/1.1" 200 1710
+Traceback (most recent call last):
+  File "/tmp/wanzb_v3_api/src/weixin/views.py", line 1061, in get
+    rst = ctl.get_format_user_info(request)
+  File "/tmp/wanzb_v3_api/src/weixin/controls.py", line 2559, in get_format_user_info
+    userinfo["fans"] = cm.UserFollows.objects.filter(follow_id=user_id).count()
+TypeError: 'NoneType' object does not support item assignment
+[21/Feb/2023 20:39:02] "GET /api/wx/user/info HTTP/1.1" 200 79
+[21/Feb/2023 20:39:10] "GET /api/wx/v3/article/type/list HTTP/1.1" 200 133
+[21/Feb/2023 20:39:11] "GET /api/wx/v2/champion/article/list?isbanner=0 HTTP/1.1" 200 1041315
+[21/Feb/2023 20:39:13] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:39:13] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6292
+[21/Feb/2023 20:39:14] "GET /api/wx/v2/hot/stock/buy/list?name=%3CUIBarButtonItem%3A%200x103d4e800%3E%20target%3D0x100c0ab10%20action%3Dsearch%3A%20image%3D%3CUIImage%3A0x281993960%20named%28search.png%29%20%7B21.333333333333332%2C%2021.333333333333332%7D%20renderingMode%3Dautomatic%3E&stock_date=2023-02-21 HTTP/1.1" 200 45
+[21/Feb/2023 20:39:18] "GET /api/wx/v2/default/date HTTP/1.1" 200 33
+[21/Feb/2023 20:39:19] "GET /api/wx/v2/hot/stock/buy/list?page=1&page_size=50&stock_date=2023-02-21 HTTP/1.1" 200 6285
+[21/Feb/2023 20:39:31] "GET /api/wx/v2/match/list HTTP/1.1" 200 41771
+[21/Feb/2023 20:39:31] "GET /api/wx/v2/default/date?match_id=14 HTTP/1.1" 200 33
+[21/Feb/2023 20:39:32] "GET /api/wx/group/rank/list?match_id=14&stock_date=2023-02-21 HTTP/1.1" 200 49840
+[21/Feb/2023 20:39:33] "GET /api/wx/player/match?id=14&record_id=13831&user_id=4491 HTTP/1.1" 200 38930
+[21/Feb/2023 20:39:33] "GET /api/wx/v3/user/comments/list?page=1&page_size=50&record_id=13831 HTTP/1.1" 200 2981
+[21/Feb/2023 20:39:36] "GET /api/wx/user/info?user_id=4491 HTTP/1.1" 200 787
+[21/Feb/2023 20:39:36] "GET /api/wx/v3/user/match/list?user_id=4491 HTTP/1.1" 200 45448
+[21/Feb/2023 20:39:48] "GET /api/wx/v2/mine/latest HTTP/1.1" 200 23
+[21/Feb/2023 20:39:49] "GET /api/wx/user/info?user_id=6531 HTTP/1.1" 200 622
+[21/Feb/2023 20:39:49] "GET /api/wx/v3/user/match/list?user_id=6531 HTTP/1.1" 200 45
+[21/Feb/2023 20:39:51] "GET /api/wx/v2/enum/list HTTP/1.1" 200 590
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 20, 2023 - 22:21:31
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+invalid literal for float(): 20.0.
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+(u'13883187629', None)
+6531
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+(u'13883187629', None)
+6531
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+invalid literal for float(): 2,3928
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+invalid literal for float(): 2,3928
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+invalid literal for float(): 2,3928
+'decimal' codec can't encode characters in position 3-4: invalid decimal Unicode string
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:51:51
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:52:23
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:52:50
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:53:25
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:54:23
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding
+Performing system checks...
+
+FDD17C5AD2731FA3944E140F48EF2163
+System check identified no issues (0 silenced).
+February 21, 2023 - 20:56:06
+Django version 1.11, using settings 'settings'
+Starting development server at http://0.0.0.0:8068/
+Quit the server with CONTROL-C.
+/tmp/wanzb_v3_api/src/utils/aestool.py:2: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
+  from cryptography.hazmat.primitives import padding

+ 20 - 8
src/weixin/controls.py

@@ -774,21 +774,27 @@ def add_model(cls,**kwargs):
                 #入资金
                 if fundin > fundout:
                     fundin = fundin - fundout
-                    today_income = (today_fund-(yesterday_fund+fundin))/(float(yesterday_fund) + fundin)
+                    if yesterday:
+                        today_income = (today_fund-(yesterday_fund+fundin))/(float(yesterday_fund) + fundin)
+                        obj.yesterday_fund = obj.yesterday_fund + fundin
+                    else:
+                        today_income = 0.0
                     total_income = (today_fund-init_fund-fundin)/(init_fund+fundin)
 
                     cm.Player.objects.filter(user_id=user_id,match_id=match_id).update(fund=init_fund+fundin)
                     obj.init_fund = init_fund + fundin
-                    obj.yesterday_fund = obj.yesterday_fund + fundin
                 #出资金
                 else:
                     fundout = fundout - fundin
-                    today_income = (today_fund-(yesterday_fund-fundout))/float(yesterday_fund)
+                    if yesterday:
+                        today_income = (today_fund-(yesterday_fund-fundout))/float(yesterday_fund)
+                        obj.yesterday_fund = round(today_fund/(1+today_income),4)
+                    else:
+                        today_income = 0.0
                     total_income = (today_fund+fundout-init_fund)/init_fund
 
                     cm.Player.objects.filter(user_id=user_id,match_id=match_id).update(fund=round(today_fund/(1+total_income),4))
                     obj.init_fund = round(today_fund/(1+total_income),4)
-                    obj.yesterday_fund = round(today_fund/(1+today_income),4)
 
                 if float(today_income)>0.6:                                                    
                     raise ce.TipException(u"今日盈利已超过60%,请仔细核对数据或直接联系顽主!")
@@ -2465,19 +2471,25 @@ def modify_user_fund(request):
         #入资金
         if fundin > fundout:
             fundin = fundin - fundout
-            today_income = round((today_fund-(yesterday_fund+fundin))/(float(yesterday_fund) + fundin),4)
+            if yesterday:
+                today_income = round((today_fund-(yesterday_fund+fundin))/(float(yesterday_fund) + fundin),4)
+                yesterday_fund = yesterday_fund + fundin
+            else:
+                today_income = 0.0
             total_income = round((today_fund-init_fund-fundin)/(init_fund+fundin),4)
 
             init_fund = init_fund + fundin
-            yesterday_fund = yesterday_fund + fundin
         #出资金
         else:
             fundout = fundout - fundin
-            today_income = round((today_fund-(yesterday_fund-fundout))/float(yesterday_fund),4)
+            if yesterday:
+                today_income = round((today_fund-(yesterday_fund-fundout))/float(yesterday_fund),4)
+                yesterday_fund = round(today_fund/(1+today_income),4)
+            else:
+                today_income = 0.0
             total_income = round((today_fund+fundout-init_fund)/init_fund,4)
 
             init_fund = round(today_fund/(1+total_income),4)
-            yesterday_fund = round(today_fund/(1+today_income),4)
 
         today_income = "{}%".format(today_income*100)
         total_income = "{}%".format(total_income*100)