Beispiel #1
0
 /**
  * 获取用户所有聊天对象离线消息的数量
  * 请求参数            是否必须            类型(示例)      说明
  * accountid  true       string(cuihb) 请求用户cuihb的离线消息
  * 
  * 返回值
  * array(
  *     $chatid1=>$num1
  *     $chatid2=>$num2
  * );
  */
 public function doUnreadMsg()
 {
     $username = $this->toStr('accountid');
     //$num      = $this->toInt('num');
     if (!$username) {
         return false;
     }
     //$num = $num ? $num : 100;
     $unreadMsg = Mmessage::getUnreadMsg($username);
     $this->_success($unreadMsg);
 }