Commit 59ffd8c6 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/fix' into 'test'

fix

See merge request alpha/sun!372
parents bc90e915 4618fdbf
......@@ -40,9 +40,13 @@ class SurveyAddAnswerView(APIView):
def post(self, request):
answers = json.loads(request.POST.get('answers'))
data = {
"answers": json.loads(request.POST.get('answers')),
"template_id": request.POST.get('template_id'),
"question_order": request.POST.get('question_order'),
}
self.rpc['venus/sun/survey/answers_add'](data=answers).unwrap()
self.rpc['venus/sun/survey/answers_add'](data=data).unwrap()
return {
"status": 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment