正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -36,11 +36,11 @@ class SuppliersController extends BaseController | @@ -36,11 +36,11 @@ class SuppliersController extends BaseController | ||
| 36 | $purchaserModel = new PurchaserInfo(); | 36 | $purchaserModel = new PurchaserInfo(); |
| 37 | $this->map['project_id'] = $this->user['project_id']; | 37 | $this->map['project_id'] = $this->user['project_id']; |
| 38 | $data = $purchaserModel->lists($this->map,$this->page,$this->row); | 38 | $data = $purchaserModel->lists($this->map,$this->page,$this->row); |
| 39 | - foreach ($data as $k => $v){ | 39 | + foreach ($data['list'] as $k => $v){ |
| 40 | $v['email'] = json_decode($v['email'],true); | 40 | $v['email'] = json_decode($v['email'],true); |
| 41 | $v['mobile'] = json_decode($v['mobile'],true); | 41 | $v['mobile'] = json_decode($v['mobile'],true); |
| 42 | $v['social_media'] = json_decode($v['social_media'],true); | 42 | $v['social_media'] = json_decode($v['social_media'],true); |
| 43 | - $data[$k] = $v; | 43 | + $data['list'][$k] = $v; |
| 44 | } | 44 | } |
| 45 | $this->response('success',Code::SUCCESS,$data); | 45 | $this->response('success',Code::SUCCESS,$data); |
| 46 | } | 46 | } |
-
请 注册 或 登录 后发表评论