作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改身份

@@ -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'];