27 lines
636 B
PHP
27 lines
636 B
PHP
<?php
|
|
|
|
namespace app\controller\admin\xm;
|
|
|
|
use app\BaseController;
|
|
use app\service\CurdService;
|
|
use think\response\Json;
|
|
|
|
class MemberProfileController extends BaseController
|
|
{
|
|
|
|
public function page(): Json
|
|
{
|
|
try{
|
|
$model = \app\entity\XmMemberProfile::withSearch([], [
|
|
'telephone' => $this->request->get('telephone/s', ''),
|
|
]);
|
|
|
|
$paginate = CurdService::getPaginate($this->request, $model);
|
|
}catch (\Exception $e){
|
|
return $this->writeError($e->getMessage());
|
|
}
|
|
|
|
|
|
return $this->writeSuccess('success', $paginate);
|
|
}
|
|
} |