...
|
...
|
@@ -397,19 +397,23 @@ class PersonController extends RestBaseController |
|
|
if($this->request->isGet()){
|
|
|
$info = $this->user;
|
|
|
$info1 = $this->getIndexData();
|
|
|
$info['identity'] = $info1['identity'];
|
|
|
$info['company_name'] = isset($info1['company_name'])&&!empty($info1['company_name'])?$info1['company_name']:'';
|
|
|
if($info1){
|
|
|
$info['identity'] = $info1['identity'];
|
|
|
$info['company_name'] = isset($info1['company_name'])&&!empty($info1['company_name'])?$info1['company_name']:'';
|
|
|
|
|
|
$host = config('site.host');
|
|
|
if(isset($info['avatar']) && !empty($info['avatar'])){
|
|
|
$info['avatar'] = $host.$info['avatar'];
|
|
|
}
|
|
|
if(isset($info['images']) && !empty($info['images'])){
|
|
|
$images = explode(',',$info['images']);
|
|
|
$info['images'] = $this->getAbsolutionUrl($images);
|
|
|
}
|
|
|
$host = config('site.host');
|
|
|
if(isset($info['avatar']) && !empty($info['avatar'])){
|
|
|
$info['avatar'] = $host.$info['avatar'];
|
|
|
}
|
|
|
if(isset($info['images']) && !empty($info['images'])){
|
|
|
$images = explode(',',$info['images']);
|
|
|
$info['images'] = $this->getAbsolutionUrl($images);
|
|
|
}
|
|
|
|
|
|
$this->success('成功',$info);
|
|
|
$this->success('成功',$info);
|
|
|
}else{
|
|
|
$this->error('当前用户未分配身份,请联系管理员');
|
|
|
}
|
|
|
}else{
|
|
|
$this->error('请求方式错误!');
|
|
|
}
|
...
|
...
|
@@ -419,7 +423,6 @@ class PersonController extends RestBaseController |
|
|
public function getIndexData(){
|
|
|
//查询用户所属公司
|
|
|
$identity = $this->user['identity'];
|
|
|
|
|
|
if($identity == 0){
|
|
|
//员工
|
|
|
//找到公司名称,甲方或者乙方企业
|
...
|
...
|
|