|
@@ -217,6 +217,12 @@ class Station extends CatchController
|
|
|
return CatchResponse::success($this->stationModel->getAllList());
|
|
|
}
|
|
|
public function getAllListForTrans(Request $request) {
|
|
|
- return CatchResponse::success($this->stationModel->getAllList());
|
|
|
+ $list=$this->stationModel->getAllList();
|
|
|
+ $rows=[];
|
|
|
+ foreach($list as $val){
|
|
|
+ $item=['key'=>$val['mac'],'label'=>$val['name'] ];
|
|
|
+ $rows[]=$item;
|
|
|
+ }
|
|
|
+ return CatchResponse::success($rows);
|
|
|
}
|
|
|
}
|