|
@@ -87,7 +87,9 @@ class Station extends CatchController
|
|
|
*/
|
|
|
public function delete($id) : \think\Response
|
|
|
{
|
|
|
- $params['delete_id']=$id;
|
|
|
+ $ids=explode(',',$id);
|
|
|
+ $shortcode=$this->stationModel->whereIn('id',$ids)->column('shortcode');
|
|
|
+ $params['delete_code']=$shortcode;
|
|
|
$params['DATA_TYPE']='station_save';
|
|
|
pushDataToRedisList($params);
|
|
|
return CatchResponse::success($this->stationModel->deleteBy($id,true));
|