| xqd
@@ -10,6 +10,14 @@ use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
|
|
class ImMessage extends Repository
|
|
|
{
|
|
|
+ public $user_id;
|
|
|
+ public $to_user_id;
|
|
|
+ public function __construct($id,$id2)
|
|
|
+ {
|
|
|
+ $this->user_id = $id;
|
|
|
+ $this->to_user_id = $id2;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询表格数据
|
|
|
*
|
| xqd
@@ -22,7 +30,7 @@ class ImMessage extends Repository
|
|
|
$perPage = $model->getPerPage();
|
|
|
|
|
|
$data =new TencentImMessage();
|
|
|
- $res = $data->getroammsg(1,1064);
|
|
|
+ $res = $data->getroammsg($this->user_id,$this->to_user_id);
|
|
|
|
|
|
return $model->makePaginator('',$res);
|
|
|
}
|