diff --git a/LICENSE.txt b/LICENSE.txt index 73cec54..574a39c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -1 + ThinkPHP遵循Apache2开源协议发布,并提供免费使用。 版权所有Copyright © 2006-2016 by ThinkPHP (http://thinkphp.cn) All rights reserved。 diff --git a/README.md b/README.md index 4a8c2fc..7661c30 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ThinkPHP 6.0 * 模板引擎分离出核心 * 内部功能中间件化 * SESSION/Cookie机制改进 -* 对Swoole以及协程支持改进 +* 对Swoole以及协程支持改进 * 对IDE更加友好 * 统一和精简大量用法 diff --git a/app/api/model/Message.php b/app/api/model/Message.php index 6048b35..bb53c0f 100644 --- a/app/api/model/Message.php +++ b/app/api/model/Message.php @@ -187,7 +187,7 @@ class Message extends Common } //获取用户最近一份公告的时间 $last_gg = $this->withTrashed()->where('receve_id',$uid)->where('type',1)->order('create_time desc')->find(); - + $start_time = 0; if($last_gg){ $last_gg = $last_gg->toArray(); $start_time = strtotime($last_gg['create_time']);