正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
@@ -390,12 +390,13 @@ class Attestation extends Api | @@ -390,12 +390,13 @@ class Attestation extends Api | ||
390 | ->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity,c.lng,c.lat') | 390 | ->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity,c.lng,c.lat') |
391 | ->find(); | 391 | ->find(); |
392 | if(!empty($info)){ | 392 | if(!empty($info)){ |
393 | - $fa['is_ti'] = 1; | 393 | + |
394 | //查询入驻消息 拿出 申请人名字 | 394 | //查询入驻消息 拿出 申请人名字 |
395 | $res = Db::name('personage') | 395 | $res = Db::name('personage') |
396 | ->where('user_id',$user_id) | 396 | ->where('user_id',$user_id) |
397 | ->find(); | 397 | ->find(); |
398 | $fa['name'] = $res['name']; | 398 | $fa['name'] = $res['name']; |
399 | + $fa['is_ti'] = 1; | ||
399 | $fa['institution'] = $info['institution']; | 400 | $fa['institution'] = $info['institution']; |
400 | $fa['id'] = $info['farm_id']; | 401 | $fa['id'] = $info['farm_id']; |
401 | $fa['identity'] = $info['identity']; | 402 | $fa['identity'] = $info['identity']; |
@@ -443,11 +444,12 @@ class Attestation extends Api | @@ -443,11 +444,12 @@ class Attestation extends Api | ||
443 | ->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity,c.lng,c.lat') | 444 | ->field('a.*,c.id as farm_id,c.address,c.project_num,c.name as farm_name,c.identity,c.lng,c.lat') |
444 | ->find(); | 445 | ->find(); |
445 | if(!empty($info)){ | 446 | if(!empty($info)){ |
446 | - $list['is_ti'] = 1; | 447 | + |
447 | //查询入驻消息 拿出 申请人名字 | 448 | //查询入驻消息 拿出 申请人名字 |
448 | $res = Db::name('company') | 449 | $res = Db::name('company') |
449 | ->where('user_id',$user_id) | 450 | ->where('user_id',$user_id) |
450 | ->find(); | 451 | ->find(); |
452 | + $fa['is_ti'] = 1; | ||
451 | $fa['name'] = $res['name']; | 453 | $fa['name'] = $res['name']; |
452 | $fa['address'] = $info['address']; | 454 | $fa['address'] = $info['address']; |
453 | $fa['id'] = $info['farm_id']; | 455 | $fa['id'] = $info['farm_id']; |
-
请 注册 或 登录 后发表评论