|
@@ -46,7 +46,7 @@ from Controller.CheckUserData import DataValid
|
|
from Model.models import Device_Info, Order_Model, Store_Meal, VodHlsModel, OssCrdModel, UID_Bucket, StsCrdModel, \
|
|
from Model.models import Device_Info, Order_Model, Store_Meal, VodHlsModel, OssCrdModel, UID_Bucket, StsCrdModel, \
|
|
ExperienceContextModel, Pay_Type, CDKcontextModel, Device_User, SysMassModel, SysMsgModel, UidPushModel, \
|
|
ExperienceContextModel, Pay_Type, CDKcontextModel, Device_User, SysMassModel, SysMsgModel, UidPushModel, \
|
|
Unused_Uid_Meal, UIDMainUser, UserModel, PromotionRuleModel, VideoPlaybackTimeModel, CloudLogModel, CouponModel, \
|
|
Unused_Uid_Meal, UIDMainUser, UserModel, PromotionRuleModel, VideoPlaybackTimeModel, CloudLogModel, CouponModel, \
|
|
- AiStoreMeal, AiService, UidSetModel, Ai_Push_Info, iotdeviceInfoModel, AiProcessTime
|
|
|
|
|
|
+ AiStoreMeal, AiService, UidSetModel, Ai_Push_Info, iotdeviceInfoModel
|
|
from Object.AWS.S3Email import S3Email
|
|
from Object.AWS.S3Email import S3Email
|
|
from Object.AliPayObject import AliPayObject
|
|
from Object.AliPayObject import AliPayObject
|
|
from Object.AliSmsObject import AliSmsObject
|
|
from Object.AliSmsObject import AliSmsObject
|
|
@@ -652,9 +652,9 @@ class AiView(View):
|
|
if c_res and d_res:
|
|
if c_res and d_res:
|
|
logger.info('upload-----S3----success')
|
|
logger.info('upload-----S3----success')
|
|
count_time = int(time.time()) - receiveTime
|
|
count_time = int(time.time()) - receiveTime
|
|
- AiProcessTime.objects.create(detectTime=n_time, receiveTime=receiveTime, aiTime=ai_start_time,
|
|
|
|
- aiEndTime=ai_end_time, pushTime=jpush_start_time,
|
|
|
|
- pushEndTime=jpush_end_time, serverCountTime=count_time)
|
|
|
|
|
|
+ # AiProcessTime.objects.create(detectTime=n_time, receiveTime=receiveTime, aiTime=ai_start_time,
|
|
|
|
+ # aiEndTime=ai_end_time, pushTime=jpush_start_time,
|
|
|
|
+ # pushEndTime=jpush_end_time, serverCountTime=count_time)
|
|
return JsonResponse(status=200, data='success', safe=False)
|
|
return JsonResponse(status=200, data='success', safe=False)
|
|
return JsonResponse(status=500, data='fail', safe=False)
|
|
return JsonResponse(status=500, data='fail', safe=False)
|
|
|
|
|