gogs 3 mesiacov pred
rodič
commit
b93f1c4fcd

+ 1 - 1
app/Http/Controllers/Api/DwyController.php

@@ -110,7 +110,7 @@ class DwyController extends BaseController
     {
         $data = $request->all();
         file_put_contents('dwy1.txt', json_encode($data) . PHP_EOL, 8);
-        $this->post_helper("https://tmapp.dwycloud.com/api/openCommand",$data,[]);
+        $this->post_helper("https://tmapp.dwycloud.com/api/openCommand",json_encode($data),[]);
         $device_id = $data['device_code'];
         $box_code = $data['box_code'];
         $key = $data['type'];