Browse Source

消息

master
jianglong 4 years ago
parent
commit
2200545033
  1. 2
      LICENSE.txt
  2. 2
      app/api/model/Message.php

2
LICENSE.txt

@ -1,4 +1,4 @@
1
ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
版权所有Copyright © 2006-2016 by ThinkPHP (http://thinkphp.cn)
All rights reserved。

2
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']);

Loading…
Cancel
Save