소스 검색

no message

DESKTOP-9JTA2JJ\HP 5 년 전
부모
커밋
434e242870
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)]);
     }