...
|
...
|
@@ -128,14 +128,14 @@ class Message extends Api |
|
|
}
|
|
|
$data = Db::name('message')
|
|
|
->where('id',$id)
|
|
|
->field('id,title,content,createtime')
|
|
|
->field('id,title,content,createtime,type')
|
|
|
->find();
|
|
|
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
|
|
|
}else{
|
|
|
//不是
|
|
|
$data = Db::name('message')
|
|
|
->where('id',$id)
|
|
|
->field('id,title,content,createtime')
|
|
|
->field('id,title,content,createtime,type')
|
|
|
->find();
|
|
|
Db::name('message')->where('id',$id)->update(['is_read'=>1]);
|
|
|
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
|
...
|
...
|
|