<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Web\Controller; use Illuminate\Support\Facades\View; use ModStart\App\Web\Layout\WebPage; use ModStart\Core\Input\Request; use ModStart\Field\AbstractField; use ModStart\Field\AutoRenderedFieldValue; use ModStart\Grid\Grid; use ModStart\Grid\GridFilter; use ModStart\Module\ModuleBaseController; use ModStart\Module\ModuleManager; use ModStart\Repository\Filter\RepositoryFilter; use Module\Member\Auth\MemberUser; use Module\Member\Support\MemberLoginCheck; class MemberCreditController extends ModuleBaseController implements MemberLoginCheck { private $api; public function __construct() { goto Q2KdG; Q2KdG: list($this->viewMemberFrame, $FtPNG) = $this->viewPaths('member.frame'); goto R9n1z; wODAL: $this->api = app(\Module\Member\Api\Controller\MemberCreditController::class); goto RKC8K; R9n1z: View::share('_viewMemberFrame', $this->viewMemberFrame); goto wODAL; RKC8K: } public function index(WebPage $WLCMC) { goto YO545; YO545: $ExhHT = Grid::make('member_credit_log'); goto RbxzQ; CNhih: $ExhHT->disableCUD()->disableItemOperate(); goto TRdIG; ZeFLB: return $WLCMC->view($faKDa)->body($ExhHT); goto Ly6p_; tHbat: $ExhHT->gridFilter(function (GridFilter $zBPGV) { $zBPGV->range('created_at', '时间')->datetime(); }); goto CNhih; rybFl: list($faKDa, $FtPNG) = $this->viewPaths('memberCredit.index'); goto OqhYR; TRdIG: $ExhHT->useSimple(function (AbstractField $Wvq57, $FSL7c, $xZl3o) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberCredit.item', array('item' => $FSL7c)); }); goto gTjpk; gTjpk: if (Request::isPost()) { return $ExhHT->request(); } goto rybFl; RbxzQ: $ExhHT->repositoryFilter(function (RepositoryFilter $zBPGV) { $zBPGV->where(array('memberUserId' => MemberUser::id())); }); goto tHbat; OqhYR: $WLCMC->pageTitle('我的' . ModuleManager::getModuleConfig('Member', 'creditName', '积分')); goto ZeFLB; Ly6p_: } }