|
|
@@ -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;
|