tongshanglei %!s(int64=2) %!d(string=hai) anos
pai
achega
6f5147211b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      catch/transport/controller/StuckPoint.php

+ 3 - 1
catch/transport/controller/StuckPoint.php

@@ -66,7 +66,9 @@ class StuckPoint extends CatchController
      */
     public function update(Request $request, $id) : \think\Response
     {
-        return CatchResponse::success($this->stuckPointModel->updateBy($id, $request->post()));
+        $params=$request->post();
+        $params['macs']=implode(',',$params['macs']);
+        return CatchResponse::success($this->stuckPointModel->updateBy($id, $params));
     }
     
     /**