正在显示
1 个修改的文件
包含
24 行增加
和
0 行删除
@@ -135,6 +135,30 @@ class Message extends Api | @@ -135,6 +135,30 @@ class Message extends Api | ||
135 | //不是 | 135 | //不是 |
136 | if($info['content'] == ''){ | 136 | if($info['content'] == ''){ |
137 | //判断是否为认证审核消息 | 137 | //判断是否为认证审核消息 |
138 | + $ren = Db::name('attestation') | ||
139 | + ->alias('a') | ||
140 | + ->join('user b','a.user_id = b.id') | ||
141 | + ->join('farm c','a.farm_id = c.id') | ||
142 | + ->where('a.user_id',$info['user_id']) | ||
143 | + ->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity') | ||
144 | + ->find(); | ||
145 | + //查询入驻消息 拿出 申请人名字 | ||
146 | + $shenqing = Db::name('personage') | ||
147 | + ->where('user_id',$info['user_id']) | ||
148 | + ->find(); | ||
149 | + $list['name'] = $shenqing['name']; | ||
150 | + $list['identity'] = $ren['identity']; | ||
151 | + $list['farm_name'] = $ren['farm_name']; | ||
152 | + $list['project_num'] = $ren['project_num']; | ||
153 | + $list['createtime'] = date('Y-m-d H:i:s',$info['createtime']); | ||
154 | + $list['time'] = date('Y-m-d',$ren['createtime']); | ||
155 | + $list['address'] = $ren['address']; | ||
156 | + $list['institution'] = $ren['institution']; | ||
157 | + $list['title'] = $info['title']; | ||
158 | + $list['status'] = $ren['status']; | ||
159 | + $list['type'] = $info['type']; | ||
160 | + Db::name('message')->where('id',$id)->update(['is_read'=>1]); | ||
161 | + $this->success('success',$list); | ||
138 | } | 162 | } |
139 | $data = Db::name('message') | 163 | $data = Db::name('message') |
140 | ->where('id',$id) | 164 | ->where('id',$id) |
-
请 注册 或 登录 后发表评论