DESKTOP-9JTA2JJ\HP 5 tahun lalu
induk
melakukan
434e242870
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      api/application/helpers/function_helper.php

+ 1 - 1
api/application/helpers/function_helper.php

@@ -647,7 +647,7 @@ function send_websocket($clientid,$data = array(),$resType='cmd')
 {
     if (!empty($clientid)) {
         $CI =& get_instance();
-        $data['status'] = 2;
+        if (isset($data['data'])) $data['data']['status'] = 2;
         $CI->db->insert('message',['client'=>$clientid,'msg'=>json_encode($data)]);
     }