/**
  * 返回字符串
  * @param unknown $code 状态码
  * @param unknown $msg 消息
  * @param unknown $data 返回数据
  * @param string $type  返回数据类型
  */
 protected function responseString($code, $msg, $data, $type = 'json')
 {
     if (!$type) {
         $type = 'json';
     }
     switch ($type) {
         case 'json':
             Response::jsonResponse($code, $msg, $data);
             break;
     }
     trigger_error('unkonwn return data type :' . $type);
 }