|
@@ -28,6 +28,7 @@ from Model.models import UidPushModel, AiService, VodHlsTag, VodHlsTagType
|
|
|
from Object import MergePic
|
|
|
from Object.DynamodbObject import DynamodbObject
|
|
|
from Object.ETkObject import ETkObject
|
|
|
+from Object.RedisObject import RedisObject
|
|
|
from Object.ResponseObject import ResponseObject
|
|
|
from Object.SageMakerAiObject import SageMakerAiObject
|
|
|
from Object.TokenObject import TokenObject
|
|
@@ -100,6 +101,11 @@ class AiView(View):
|
|
|
file_post_three = request_dict.get('fileThree', None)
|
|
|
TIME_LOGGER.info(f'uid:{uid},图1:{file_post_one[:30]},图2:{file_post_two[:30]},图3:{file_post_three[:30]}')
|
|
|
|
|
|
+ if uid == 'JTH5YA2KT6XRY74T111A':
|
|
|
+ redis = RedisObject(6)
|
|
|
+ params = f'picture1={file_post_one[:30]},picture2={file_post_two[:30]},picture3={file_post_three[:30]}'
|
|
|
+ redis.set_data(f'ASJ:PUSH:{uid}:{n_time}', val=params, expire=300)
|
|
|
+
|
|
|
file_list = [file_post_one, file_post_two, file_post_three]
|
|
|
del file_post_one, file_post_two, file_post_three
|
|
|
if not all(file_list):
|