DESKTOP-9JTA2JJ\HP 5 years ago
parent
commit
af8abf7dba
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api/application/controllers/Lampcontrol.php

+ 4 - 0
api/application/controllers/Lampcontrol.php

@@ -635,11 +635,15 @@ class Lampcontrol extends Base_Controller {
         $url = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].'/api/lampcontrol/set_load_asy';
         foreach ($lampArr as $l) {
             $data['lamp_id'] = $l;
+            var_dump($url);
             doAsyncRequest($url,$data);
         }
     }
 
     public function set_load_asy(){
+        $file = fopen('../upload/test.txt', 'w');
+        fwrite($file, 'string');
+        fclose($file);
         $clientid = $this->input->post('clientid',true);
         $lampid = $this->input->post('lamp_id',true);