...
|
...
|
@@ -352,11 +352,11 @@ class Question extends Api |
|
|
$Array = Db::name('sleep')->where('user_id', $UserId)->where('type', 1)->select();
|
|
|
if (!empty($Array)) {
|
|
|
foreach ($Array as $k => $v) {
|
|
|
$DateDay[$k]['date'] = date('Y-m-d', $v['createtime']);
|
|
|
$DateMonth[$k]['date'] = date('Y-m', $v['createtime']);
|
|
|
$DateDay[$k] = date('Y-m-d', $v['createtime']);
|
|
|
$DateMonth[$k] = date('Y-m', $v['createtime']);
|
|
|
}
|
|
|
dump($this->second_array_unique_bykey($DateDay, 'date'));
|
|
|
dump($this->second_array_unique_bykey($DateMonth, 'date'));
|
|
|
dump($this->second_array_unique_bykey($DateDay, ''));
|
|
|
dump($this->second_array_unique_bykey($DateMonth, ''));
|
|
|
} else {
|
|
|
$Day = [];
|
|
|
$Month = [];
|
...
|
...
|
|