|
@@ -38,7 +38,8 @@ class SuppliersController extends BaseController |
|
@@ -38,7 +38,8 @@ class SuppliersController extends BaseController |
|
38
|
$lists = $purchaserModel->list($this->map);
|
38
|
$lists = $purchaserModel->list($this->map);
|
|
39
|
if(!empty($lists)){
|
39
|
if(!empty($lists)){
|
|
40
|
foreach ($lists as $v){
|
40
|
foreach ($lists as $v){
|
|
41
|
- $resultData = json_decode($v['data']);
|
41
|
+ if(!empty($v['data'])){
|
|
|
|
42
|
+ $resultData = json_decode($v['data'],true);
|
|
42
|
foreach ($resultData as $value){
|
43
|
foreach ($resultData as $value){
|
|
43
|
$value = (array)$value;
|
44
|
$value = (array)$value;
|
|
44
|
$value['keyword'] = $v['keyword'];
|
45
|
$value['keyword'] = $v['keyword'];
|
|
@@ -46,6 +47,7 @@ class SuppliersController extends BaseController |
|
@@ -46,6 +47,7 @@ class SuppliersController extends BaseController |
|
46
|
}
|
47
|
}
|
|
47
|
}
|
48
|
}
|
|
48
|
}
|
49
|
}
|
|
|
|
50
|
+ }
|
|
49
|
$this->response('success',Code::SUCCESS,$data);
|
51
|
$this->response('success',Code::SUCCESS,$data);
|
|
50
|
}
|
52
|
}
|
|
51
|
|
53
|
|