...
|
...
|
@@ -135,6 +135,30 @@ class Message extends Api |
|
|
//不是
|
|
|
if($info['content'] == ''){
|
|
|
//判断是否为认证审核消息
|
|
|
$ren = Db::name('attestation')
|
|
|
->alias('a')
|
|
|
->join('user b','a.user_id = b.id')
|
|
|
->join('farm c','a.farm_id = c.id')
|
|
|
->where('a.user_id',$info['user_id'])
|
|
|
->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity')
|
|
|
->find();
|
|
|
//查询入驻消息 拿出 申请人名字
|
|
|
$shenqing = Db::name('personage')
|
|
|
->where('user_id',$info['user_id'])
|
|
|
->find();
|
|
|
$list['name'] = $shenqing['name'];
|
|
|
$list['identity'] = $ren['identity'];
|
|
|
$list['farm_name'] = $ren['farm_name'];
|
|
|
$list['project_num'] = $ren['project_num'];
|
|
|
$list['createtime'] = date('Y-m-d H:i:s',$info['createtime']);
|
|
|
$list['time'] = date('Y-m-d',$ren['createtime']);
|
|
|
$list['address'] = $ren['address'];
|
|
|
$list['institution'] = $ren['institution'];
|
|
|
$list['title'] = $info['title'];
|
|
|
$list['status'] = $ren['status'];
|
|
|
$list['type'] = $info['type'];
|
|
|
Db::name('message')->where('id',$id)->update(['is_read'=>1]);
|
|
|
$this->success('success',$list);
|
|
|
}
|
|
|
$data = Db::name('message')
|
|
|
->where('id',$id)
|
...
|
...
|
|