// +---------------------------------------------------------------------- namespace app\controller\api\user; use app\common\repositories\user\UserBillRepository; use crmeb\basic\BaseController; use app\common\repositories\user\FeedbackRepository; use think\App; class Member extends BaseController { protected $repository; public function __construct(App $app, UserBillRepository $repository) { parent::__construct($app); $this->repository = $repository; } public function getMemberValue() { $where = [ 'uid' => $this->request->uid(), 'category' => 'sys_members', ]; $data = $this->repository->month($where); return app('json')->success($data); } }