<?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 e8VH6; DgGjM: $this->api = app(\Module\Member\Api\Controller\MemberCreditController::class); goto Ssc9D; Ktmn6: View::share('_viewMemberFrame', $this->viewMemberFrame); goto DgGjM; e8VH6: list($this->viewMemberFrame, $NMB1l) = $this->viewPaths('member.frame'); goto Ktmn6; Ssc9D: } public function index(WebPage $iXUoW) { goto pkNtG; KfmBM: if (Request::isPost()) { return $W3CVY->request(); } goto FhmQV; FhmQV: list($kF488, $NMB1l) = $this->viewPaths('memberCredit.index'); goto JgT9w; YC_eo: return $iXUoW->view($kF488)->body($W3CVY); goto i0ULK; G94iq: $W3CVY->disableCUD()->disableItemOperate(); goto ASBE0; ASBE0: $W3CVY->useSimple(function (AbstractField $jJyrp, $YaV4m, $DbHm9) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberCredit.item', array('item' => $YaV4m)); }); goto KfmBM; pkNtG: $W3CVY = Grid::make('member_credit_log'); goto xHvNU; xHvNU: $W3CVY->repositoryFilter(function (RepositoryFilter $mHisM) { $mHisM->where(array('memberUserId' => MemberUser::id())); }); goto Nj_DD; Nj_DD: $W3CVY->gridFilter(function (GridFilter $mHisM) { $mHisM->range('created_at', '时间')->datetime(); }); goto G94iq; JgT9w: $iXUoW->pageTitle('我的' . ModuleManager::getModuleConfig('Member', 'creditName', '积分')); goto YC_eo; i0ULK: } }