From 2fe556a03bce3df5ad8fdcfdc92583d8ea945ac9 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 29 Mar 2018 12:01:28 +0800
Subject: [PATCH] 新增广告调用接口

---
 Yfs/Domain/Data.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Yfs/Domain/Data.php b/Yfs/Domain/Data.php
index 60a685f..826c25c 100644
--- a/Yfs/Domain/Data.php
+++ b/Yfs/Domain/Data.php
@@ -22,7 +22,7 @@
         foreach ($data['data'] as $value) { 
             $arr['value'] = $value['value'];
             $arr['create_time'] = $value['time'];
-            $arr['date'] = date('Y-m-d', strtotime($value));
+            $arr['date'] = date('Y-m-d', strtotime($value['time']));
             $this->model->add($arr);
             if(isset($arr['_id']))
                 unset($arr['_id']);

--
Gitblit v1.8.0