From e4d5467f055ece8cc9dfdc02dd836bcc187034a5 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Wed, 13 Jun 2018 10:15:57 +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 a9be7c0..9ed9c3c 100644
--- a/Yfs/Domain/Data.php
+++ b/Yfs/Domain/Data.php
@@ -36,7 +36,7 @@
             }
             elseif($value['type'] == 1){
 
-                $arr['hour'] = date('H', strtotime($value['time']));
+                $arr['hour'] = (int)date('H', strtotime($value['time']));
                 $hourly = $this->hourly_model->get(array('hour' => $arr['hour'], 'date' => $arr['date'], 'user_id' => $arr['user_id']));
 
                 if($hourly){

--
Gitblit v1.8.0