|
@@ -1,14 +1,3 @@
|
|
|
-#!/usr/bin/env python3
|
|
|
-# -*- coding: utf-8 -*-
|
|
|
-"""
|
|
|
-@Copyright (C) ansjer cop Video Technology Co.,Ltd.All rights reserved.
|
|
|
-@AUTHOR: ASJRD018
|
|
|
-@NAME: AnsjerFormal
|
|
|
-@software: PyCharm
|
|
|
-@DATE: 2024年7月29日15:51:04
|
|
|
-@Version: python3.6
|
|
|
-@MODIFY DECORD:ansjer dev
|
|
|
-"""
|
|
|
import os
|
|
|
import time
|
|
|
|
|
@@ -60,6 +49,8 @@ class EvaluationActivityView(View):
|
|
|
return self.edit_activity_user(request_dict, response)
|
|
|
elif operation == 'addStoryCollectionUser': # 新增故事征集客户信息
|
|
|
return self.add_story_collection_user(user_id, request_dict, response)
|
|
|
+ elif operation == 'addStoryCollectionUserSuccess': # 新增故事征集客户信息成功回调
|
|
|
+ return self.add_story_collection_user_success(user_id, request_dict, response)
|
|
|
else:
|
|
|
return response.json(404)
|
|
|
|
|
@@ -398,3 +389,12 @@ class EvaluationActivityView(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def add_story_collection_user_success(user_id, request_dict, response):
|
|
|
+ activity_id = request_dict.get('activity_id', None)
|
|
|
+ try:
|
|
|
+ ActivityUser.objects.filter(user_id=user_id, activity_id=activity_id).update(registration_status=1)
|
|
|
+ return response.json(0)
|
|
|
+ except Exception as e:
|
|
|
+ return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|