...
|
...
|
@@ -366,14 +366,15 @@ class Question extends Api |
|
|
$map['createtime'] = ['between', [$StarTime, $EndTime]];
|
|
|
$List = Db::name('sleep')->where('user_id', $UserId)->where('type', 1)->where($map)->select();
|
|
|
foreach ($List as $key => $value) {
|
|
|
$DayArray[$k][$key]['id'] = $value['id'];
|
|
|
$DayArray[$k][$key]['date'] = date('Y-m-d', $value['createtime']);
|
|
|
$DayArray[$k][$key]['V'] = $value['v'];
|
|
|
$DayArray[$k][$key]['P'] = $value['p'];
|
|
|
$DayArray[$k][$key]['K'] = $value['k'];
|
|
|
}
|
|
|
}
|
|
|
dump($DayArray);
|
|
|
foreach ($DayArray as $k => $v) {
|
|
|
dump($v);
|
|
|
}
|
|
|
} else {
|
|
|
$Day = [];
|
|
|
$Month = [];
|
...
|
...
|
|