|
@@ -253,6 +253,8 @@ class CommonService:
|
|
|
|
|
|
@staticmethod
|
|
|
def decode_data(content, start=1, end=4):
|
|
|
+ if not content:
|
|
|
+ return ''
|
|
|
try:
|
|
|
for i in range(start, end):
|
|
|
if i == 1:
|
|
@@ -275,6 +277,8 @@ class CommonService:
|
|
|
|
|
|
@staticmethod
|
|
|
def encode_data(content, start=1, end=4):
|
|
|
+ if not content:
|
|
|
+ return ''
|
|
|
for i in range(start, end):
|
|
|
if i == 1:
|
|
|
content = RandomStr(3, False)+content+RandomStr(3, False)
|