更新 调试

main
鹿和sa0ChunLuyu 1 year ago
parent 3d2a3d74c8
commit 7fee078939

@ -40,18 +40,19 @@ class QuestionnairesLogsController extends Controller
foreach ($log as $value) {
$person_info = json_decode($value->person_info, true);
$age = !!$person_info['birthday'] ? date('Y') - date('Y', strtotime($person_info['birthday'])) : 0;
$check_items = json_decode($value->check_items, true);
$count = count($check_items);
// $check_items = json_decode($value->check_items, true);
// $count = count($check_items);
$list[] = [
'id' => $value->id,
'title' => $value->title,
'name' => $person_info['name'],
'age' => $age,
'created_at' => $value->created_at,
'count' => $count
'count' => 0
];
}
return \Yz::Return(true, '操作完成', [
'log'=>$log,
'list' => $list,
]);
}

Loading…
Cancel
Save