dongxiaoqin 1 рік тому
батько
коміт
e4007c3754
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      app/workerapi/controller/InterviewController.php

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

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