更新 调试

main
鹿和sa0ChunLuyu 1 year ago
parent 49633464cf
commit f78835f7dd

@ -40,9 +40,8 @@ class QuestionnairesLogsController extends Controller
foreach ($log as $value) { foreach ($log as $value) {
$person_info = json_decode($value->person_info, true); $person_info = json_decode($value->person_info, true);
$age = !!$person_info['birthday'] ? date('Y') - date('Y', strtotime($person_info['birthday'])) : 0; $age = !!$person_info['birthday'] ? date('Y') - date('Y', strtotime($person_info['birthday'])) : 0;
$check_items = []; $check_items = json_decode($value->check_items, true);
$items = json_decode($value->items, true); $count = count($check_items);
$count = count($items);
$list[] = [ $list[] = [
'id' => $value->id, 'id' => $value->id,
'title' => $value->title, 'title' => $value->title,

Loading…
Cancel
Save