From d50ec1d43fd3b57305425d38ecc7c84f201e74cf Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Sat, 28 Apr 2018 14:38:13 +0800 Subject: [PATCH] 优化回报数据 --- Yfs/Domain/Data.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Yfs/Domain/Data.php b/Yfs/Domain/Data.php index e1b51c4..a9be7c0 100644 --- a/Yfs/Domain/Data.php +++ b/Yfs/Domain/Data.php @@ -49,9 +49,10 @@ $this->hourly_model->add($arr); } $task_arr = array(); - $task_date = $this->task_model->get(array('date' => $arr['date'])); + $task_date = $this->task_model->get(array('date' => $arr['date'], 'user_id' => $arr['user_id'])); if(!$task_date){ $task_arr['date'] = $arr['date']; + $task_arr['user_id'] = $arr['user_id']; $this->task_model->add($task_arr); } -- Gitblit v1.8.0