From bb1e03769bd2896b8d9665bbf8e473a7b4dabb6d Mon Sep 17 00:00:00 2001 From: colly <576734462@qq.com> Date: Tue, 08 Aug 2017 09:16:52 +0800 Subject: [PATCH] 修改变量错误 --- Yfs/Domain/Data.php | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Yfs/Domain/Data.php b/Yfs/Domain/Data.php index c5851ec..60a685f 100644 --- a/Yfs/Domain/Data.php +++ b/Yfs/Domain/Data.php @@ -22,6 +22,7 @@ foreach ($data['data'] as $value) { $arr['value'] = $value['value']; $arr['create_time'] = $value['time']; + $arr['date'] = date('Y-m-d', strtotime($value)); $this->model->add($arr); if(isset($arr['_id'])) unset($arr['_id']); @@ -32,6 +33,18 @@ } + public function getList(){ + return $this->model->getList(); + } + + + + //public function updateTime($data){ + // $id = $data['_id']; + // unset($data['_id']); + // return $this->model->update($data, array('_id' => $id)); + //} + } -- Gitblit v1.8.0