up.
This commit is contained in:
parent
6dd2e0ab4d
commit
db74209ab5
@ -11,14 +11,19 @@ class MemberController extends BaseController
|
|||||||
|
|
||||||
public function page(): Json
|
public function page(): Json
|
||||||
{
|
{
|
||||||
$model = \app\entity\XmMember::withSearch([], [
|
try{
|
||||||
'telephone' => $this->request->get('telephone/s', ''),
|
$model = \app\entity\XmMember::withSearch([], [
|
||||||
'telephone_md5' => $this->request->get('telephone_md5/s', ''),
|
'telephone' => $this->request->get('telephone/s', ''),
|
||||||
'realname' => $this->request->get('realname/s', ''),
|
'telephone_md5' => $this->request->get('telephone_md5/s', ''),
|
||||||
'register_channel_id ' => $this->request->get('register_channel_id/d', 0),
|
'realname' => $this->request->get('realname/s', ''),
|
||||||
])->append(['channel']);
|
'register_channel_id ' => $this->request->get('register_channel_id/d', 0),
|
||||||
|
])->append(['channel']);
|
||||||
|
|
||||||
|
$paginate = CurdService::getPaginate($this->request, $model);
|
||||||
|
}catch (\Exception $e){
|
||||||
|
return $this->writeError($e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
$paginate = CurdService::getPaginate($this->request, $model);
|
|
||||||
|
|
||||||
return $this->writeSuccess('success', $paginate);
|
return $this->writeSuccess('success', $paginate);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user