...
|
...
|
@@ -121,10 +121,11 @@ class MoneyController extends Controller |
|
|
public function messageIndex()
|
|
|
{
|
|
|
$user=$this->getUser();
|
|
|
$data=Db::name('message')->paginate(5)->each(function($item){
|
|
|
$item['create_time']=date('Y.m.d H:i:s',$item['create_time']);
|
|
|
return $item;
|
|
|
})->toArray();
|
|
|
$data=Db::name('message')->paginate(5);
|
|
|
// ->each(function($item){
|
|
|
// $item['create_time']=date('Y.m.d H:i:s',$item['create_time']);
|
|
|
// return $item;
|
|
|
// })->toArray();
|
|
|
foreach ($data as $k=>$v){
|
|
|
$re=Db::name('message_read')->where(['user_id'=>$user['id'],'message_id'=>$data[$k]['id']])->find();
|
|
|
if ($re){
|
...
|
...
|
|