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