Kaynağa Gözat

Merge branch 'dongxiaoqin_0220'

dongxiaoqin 1 yıl önce
ebeveyn
işleme
a004b4a7a0

+ 4 - 2
app/workerapi/controller/InterviewController.php

@@ -74,7 +74,7 @@ class InterviewController extends BaseApiController
             'options' => [
             'options' => [
                 '空调加氟',
                 '空调加氟',
                 '空调维修',
                 '空调维修',
-                '冰箱','制冷设备','油烟机','洗衣机','甩干机','燃气热水器','电热水器','燃气灶','干洗机',
+                '冰箱','制冷设备','油烟机','洗衣机','甩干机','热水器','燃气灶','干洗机',
             ],
             ],
             'type' => 2,
             'type' => 2,
         ]
         ]
@@ -177,10 +177,12 @@ class InterviewController extends BaseApiController
             if ($id == 6 || $id == 7) {
             if ($id == 6 || $id == 7) {
                 $question = MasterWorkerLogic::getQuestion(['type' => $info->type, 'category' => $data['options']]);
                 $question = MasterWorkerLogic::getQuestion(['type' => $info->type, 'category' => $data['options']]);
                 foreach($question['list'] as $key => $item) {   
                 foreach($question['list'] as $key => $item) {   
+                    $item['options'] = str_replace(";; ",";;",$item['options']);
+                    $question['list'][$key] = $item;
                     $temp = [
                     $temp = [
                         "id" => $item['id'],
                         "id" => $item['id'],
                         "title" => $item['title'],
                         "title" => $item['title'],
-                        "options" => explode("",$item['options']),
+                        "options" => explode(";;",$item['options']),
                         "type" => strpos($item['title'], '多选题') !== false ? 2 : 1,
                         "type" => strpos($item['title'], '多选题') !== false ? 2 : 1,
                     ];
                     ];
                     $result[] = $temp;
                     $result[] = $temp;