Commit 6da2f7f7 authored by suntengda's avatar suntengda

update 接口数据统一按result字段返回

parent 5e522afa
...@@ -26,7 +26,7 @@ class OtaController extends Base ...@@ -26,7 +26,7 @@ class OtaController extends Base
$limit = $this->params['limit'] ?? 20; $limit = $this->params['limit'] ?? 20;
$res = OtaService::list($name, $printerSn, $printerKey, $offset, $limit); $res = OtaService::list($name, $printerSn, $printerKey, $offset, $limit);
$this->success(['data' => $res]); $this->success(['result' => $res]);
} }
/** /**
......
...@@ -25,7 +25,7 @@ class TakePlaceController extends Base { ...@@ -25,7 +25,7 @@ class TakePlaceController extends Base {
$limit = $this->params['limit'] ?? 20; $limit = $this->params['limit'] ?? 20;
$res = TakePlaceService::searchList($keywords,$offset,$limit); $res = TakePlaceService::searchList($keywords,$offset,$limit);
$this->success(['data'=>$res]); $this->success(['result'=>$res]);
} }
/** /**
...@@ -68,7 +68,7 @@ class TakePlaceController extends Base { ...@@ -68,7 +68,7 @@ class TakePlaceController extends Base {
$data = TakePlaceService::getPindanTakePlaceList($marketingPindanId,$offset,$limit); $data = TakePlaceService::getPindanTakePlaceList($marketingPindanId,$offset,$limit);
$this->success(['data'=>$data]); $this->success(['result'=>$data]);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment