logicdn 1.0.579 → 1.0.582
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/logi.im/api/asset/data/bundle.json +1 -1
- package/logi.im/api/asset/data/friends-cached.json +87 -80
- package/logi.im/api/asset/data/friends.json +5 -0
- package/logi.im/api/asset/data/nodes.info +1 -1
- package/logi.im/api/asset/img/{www.cnblogs.com.jpg → www.cnblogs.com-l0jovgfuzy8=.jpg} +0 -0
- package/logi.im/api/asset/img/www.cnblogs.com-l2x5c2hhcms=.png +0 -0
- package/logi.im/api/asset/img/{www.yalexin.top.jpg → www.yalexin.top-l2jsb2cv.jpg} +0 -0
- package/logi.im/api/asset/img/xinxin-l.github.io.jpg +0 -0
- package/logi.im/api/biz/friend.py +6 -1
- package/package.json +1 -1
File without changes
|
Binary file
|
File without changes
|
Binary file
|
@@ -3,6 +3,7 @@ import io
|
|
3
3
|
import sys
|
4
4
|
import time
|
5
5
|
import json
|
6
|
+
import base64
|
6
7
|
import shutil
|
7
8
|
import random
|
8
9
|
import subprocess
|
@@ -104,7 +105,11 @@ class FriendLinkDoctor:
|
|
104
105
|
def save_image(friend):
|
105
106
|
requests.packages.urllib3.disable_warnings()
|
106
107
|
link = friend['link']
|
107
|
-
|
108
|
+
split_link = urlsplit(link)
|
109
|
+
identity = split_link.netloc
|
110
|
+
if split_link.path:
|
111
|
+
identity += "-" + \
|
112
|
+
base64.b64encode(split_link.path.encode('utf8')).decode('utf8').lower()
|
108
113
|
|
109
114
|
def save():
|
110
115
|
resp = FriendLinkDoctor.get(friend['avatar'], verify=False)
|