Commit 5d94b53c by 冷斌

fix bug

parent 6208407d
...@@ -24,22 +24,24 @@ class MessageAction extends Action ...@@ -24,22 +24,24 @@ class MessageAction extends Action
* @return void * @return void
*/ */
public function index() { public function index() {
$and_uid = $_GET['and_uid'] ? :''; // $and_uid = $_GET['and_uid'] ? :'';
//
$dao = model('Message'); // $dao = model('Message');
$list = $dao->getMessageListByUid($this->mid, array(MessageModel::ONE_ON_ONE_CHAT, MessageModel::MULTIPLAYER_CHAT), $and_uid); // $list = $dao->getMessageListByUid($this->mid, array(MessageModel::ONE_ON_ONE_CHAT, MessageModel::MULTIPLAYER_CHAT), $and_uid);
//
$this->assign($list); // $this->assign($list);
if(isAjax()){ // if(isAjax()){
Response::create(['status'=>1,'data'=>['html'=>$this->fetch('index_w3g_ajax')]],'json')->code(200)->send();exit; // Response::create(['status'=>1,'data'=>['html'=>$this->fetch('index_w3g_ajax')]],'json')->code(200)->send();exit;
} // }
// 设置信息已读(在右上角提示去掉), // // 设置信息已读(在右上角提示去掉),
$dao->setMessageIsRead(t($POST['id']), $this->mid, 1); // $dao->setMessageIsRead(t($POST['id']), $this->mid, 1);
$this->setTitle('我的私信'); // $this->setTitle('我的私信');
$userInfo = model('User')->getUserInfo($this->mid); // $userInfo = model('User')->getUserInfo($this->mid);
//
$this->setKeywords($userInfo['uname'].'的私信'); // $this->setKeywords($userInfo['uname'].'的私信');
$this->display(); // $this->display();
$this->notify();;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment