1
This commit is contained in:
1 parent
f317d7ff41
commit
5cfa3d84af
1 file changed
+5
-5
+5
-5
@@ -144,12 +144,12 @@ def make3d4print_task(r):
|
|||||||
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), 'redis连接异常,重新连接')
|
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), 'redis连接异常,重新连接')
|
||||||
r = redis.Redis(host='106.14.158.208', password='kcV2000', port=6379, db=6)
|
r = redis.Redis(host='106.14.158.208', password='kcV2000', port=6379, db=6)
|
||||||
return
|
return
|
||||||
orderIdStr = r.lpop('model:noresize')
|
orderId = r.lpop('model:noresize')
|
||||||
if orderIdStr is None: return
|
if orderId is None: return
|
||||||
|
|
||||||
arrOrder = orderIdStr.decode('utf-8').split('_')
|
# arrOrder = orderIdStr.decode('utf-8').split('_')
|
||||||
orderId = arrOrder[0]
|
# orderId = arrOrder[0]
|
||||||
size = arrOrder[1]
|
# size = arrOrder[1]
|
||||||
|
|
||||||
if type(orderId) != str:
|
if type(orderId) != str:
|
||||||
orderId = orderId.decode('utf-8')
|
orderId = orderId.decode('utf-8')
|
||||||
|
|||||||
Reference in new issue
Block a user