作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

接口对接测试

@@ -118,7 +118,7 @@ class BusinessController extends Controller @@ -118,7 +118,7 @@ class BusinessController extends Controller
118 public function business() 118 public function business()
119 { 119 {
120 $param=$this->request->param(); 120 $param=$this->request->param();
121 - $data=Db::name('business')->where('id',$param['category_id'])->select()->each(function ($item) { 121 + $data=Db::name('business')->where('category_id',$param['category_id'])->select()->each(function ($item) {
122 switch ($item['type']) 122 switch ($item['type'])
123 { 123 {
124 case 1:$item['type']='阅读类';break; 124 case 1:$item['type']='阅读类';break;