|
@@ -20,9 +20,9 @@ class HrController extends BaseController |
|
@@ -20,9 +20,9 @@ class HrController extends BaseController |
|
20
|
$lists = $logic->getHrList($this->map,$this->page,$this->row,$this->order);
|
20
|
$lists = $logic->getHrList($this->map,$this->page,$this->row,$this->order);
|
|
21
|
if(!empty($lists['list'])){
|
21
|
if(!empty($lists['list'])){
|
|
22
|
foreach ($lists['list'] as $k => $v){
|
22
|
foreach ($lists['list'] as $k => $v){
|
|
23
|
- $v['photo_gallery_link'] = $this->getImageUrl($v['photo_gallery']);
|
|
|
|
24
|
-// $v['id_card_gallery_link'] = $this->getImageUrl($v['id_card_gallery']);
|
|
|
|
25
|
-// $v['certificate_gallery_link'] = $this->getImageUrl($v['certificate_gallery']);
|
23
|
+ $v['photo_gallery_link'] = $this->getImageUrl(json_decode($v['photo_gallery']));
|
|
|
|
24
|
+ $v['id_card_gallery_link'] = $this->getImageUrl(json_decode($v['id_card_gallery']));
|
|
|
|
25
|
+ $v['certificate_gallery_link'] = $this->getImageUrl(json_decode($v['certificate_gallery']));
|
|
26
|
$lists['list'][$k] = $v;
|
26
|
$lists['list'][$k] = $v;
|
|
27
|
}
|
27
|
}
|
|
28
|
}
|
28
|
}
|
|
@@ -35,13 +35,11 @@ class HrController extends BaseController |
|
@@ -35,13 +35,11 @@ class HrController extends BaseController |
|
35
|
],[
|
35
|
],[
|
|
36
|
'id.required' => 'ID不能为空'
|
36
|
'id.required' => 'ID不能为空'
|
|
37
|
]);
|
37
|
]);
|
|
38
|
- $data = $logic->getHrInfo($this->param['id']);
|
|
|
|
39
|
- foreach ($data as $k => $v){
|
|
|
|
40
|
- // $v['photo_gallery_link'] = $this->getImageUrl($v['photo_gallery']);
|
|
|
|
41
|
-// $v['id_card_gallery_link'] = $this->getImageUrl($v['id_card_gallery']);
|
|
|
|
42
|
-// $v['certificate_gallery_link'] = $this->getImageUrl($v['certificate_gallery']);
|
|
|
|
43
|
- }
|
|
|
|
44
|
- return $this->success($data);
|
38
|
+ $info = $logic->getHrInfo($this->param['id']);
|
|
|
|
39
|
+ $info['photo_gallery_link'] = $this->getImageUrl($info['photo_gallery']);
|
|
|
|
40
|
+ $info['id_card_gallery_link'] = $this->getImageUrl($info['id_card_gallery']);
|
|
|
|
41
|
+ $info['certificate_gallery_link'] = $this->getImageUrl($info['certificate_gallery']);
|
|
|
|
42
|
+ return $this->success($info);
|
|
45
|
}
|
43
|
}
|
|
46
|
|
44
|
|
|
47
|
public function save(Request $request, HrLogic $logic){
|
45
|
public function save(Request $request, HrLogic $logic){
|