checkToken(); if ($token['code'] < 0) return $this->response($token); $this->params['member_id'] = $this->member_id; $statistics = (new Legumes())->getStatistics($this->params); $statisticsList = [ // ['title' => '已获得豆','value' => $statistics['reality_get_legumes']], // ['title' => '积分释放上限','value' => $statistics['integral_upper_limit']], ['title' => '积分赠送上限','value' => $statistics['not_integral']], ['title' => '已赠送积分','value' => $statistics['get_integral']], ['title' => '可用积分','value' => $statistics['used_integral']], ['title' => '已使用积分','value' => $statistics['use_integral']], ['title' => '冻结中积分','value' => $statistics['freeze_integral']], ]; return $this->response(success(0,'success',$statisticsList)); } /** * Common: 豆豆积分明细 - 变更记录 * Author: wu-hui * Time: 2024/05/11 15:12 * @return false|string */ public function LegumesChangeList(){ // 用户登录信息 $token = $this->checkToken(); if ($token['code'] < 0) return $this->response($token); // 分页及参数信息 $page = $this->params['page'] ?? 1; $this->params['page_size'] = 20; $this->params['member_id'] = (new Member())->getAllMemberIds((int)$this->member_id); $result = (new Legumes())->getLegumesLogList($page, $this->params); return $this->response($result); } /** * Common: 豆豆积分明细 - 每条信息是否记录 * Author: wu-hui * Time: 2024/05/15 15:09 * @return false|string */ public function legumesReleaseLog(){ $this->params['page_size'] = 20; $result = (new Legumes())->legumesReleaseLog($this->params); return $this->response($result); } /** * Common: 获取流水信息 * Author: wu-hui * Time: 2024/05/13 17:20 * @return false|string */ public function accountList(){ // 用户登录信息 $token = $this->checkToken(); if ($token['code'] < 0) return $this->response($token); // 分页及参数信息 $page = $this->params['page'] ?? 1; $this->params['page_size'] = 20; $this->params['member_id'] = $this->member_id; $result = (new Account())->accountList($page, $this->params); return $this->response($result); } /** * Common: 收益统计 - 统计信息 * Author: wu-hui * Time: 2024/05/21 14:08 * @return false|string */ public function accountStatistics(){ // 用户登录信息 $token = $this->checkToken(); if ($token['code'] < 0) return $this->response($token); // 分页及参数信息 $result = (new Account())->statistics($this->member_id); return $this->response($result); } /** * Common: 收益统计 - 收益列表 * Author: wu-hui * Time: 2024/05/21 15:08 * @return false|string */ public function accountListV2(){ // 用户登录信息 $token = $this->checkToken(); if ($token['code'] < 0) return $this->response($token); // 分页及参数信息 $this->params['page'] = $this->params['page'] ?? 1; $this->params['page_size'] = 20; $this->params['member_id'] = $this->member_id; // $result = (new Account())->accountListV2($this->params); $result = (new Account())->accountListV3($this->params); return $this->response($result); } }