public function getStatusAction() { $email = $this->_request->getQuery('email', ''); // 获取联系人的IM在线信息 $config = $this->bootstrap->getOption('im'); $im = new Oray_Im_Client($config['host'], $config['port']); $imStatus = $im->getUserStatus(explode(',', $email)); header('Accept-Ranges: bytes'); header('Content-Type: text/plain; charset=UTF-8'); header('Content-Disposition: inline;filename=response.txt'); echo $im->getResult(); }
public function getStatusAction() { //yezi@oray.com|yuyingbin@oray.com|lvrongheng@oray.com|luojiexia@oray.com|zhangcan@oray.com $email = $this->_request->getQuery('email', ''); // 获取联系人的IM在线信息 $config = $this->bootstrap->getOption('im'); $im = new Oray_Im_Client($config['host'], $config['port']); $imStatus = $im->getUserStatus(explode(',', $email)); var_dump($imStatus); echo "<pre>"; echo $im->getRequest(); echo "\n"; echo htmlspecialchars($im->getResult()); }