<?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 LLMec; LLMec: list($this->viewMemberFrame, $FViDa) = $this->viewPaths('member.frame'); goto ohehx; tP0KL: $this->api = app(\Module\Member\Api\Controller\MemberCreditController::class); goto vHak8; ohehx: View::share('_viewMemberFrame', $this->viewMemberFrame); goto tP0KL; vHak8: } public function index(WebPage $j13Tr) { goto tzDGW; qlytg: $ktizU->gridFilter(function (GridFilter $wPpmz) { $wPpmz->range('created_at', '时间')->datetime(); }); goto zaKZ6; MgHKo: return $j13Tr->view($RzPgc)->body($ktizU); goto vsTIU; oPll1: $ktizU->useSimple(function (AbstractField $UdGHQ, $Z32UA, $OPJGK) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberCredit.item', array('item' => $Z32UA)); }); goto rku8v; rku8v: if (Request::isPost()) { return $ktizU->request(); } goto s6ri5; s6ri5: list($RzPgc, $FViDa) = $this->viewPaths('memberCredit.index'); goto GSpEN; tzDGW: $ktizU = Grid::make('member_credit_log'); goto tGzGw; GSpEN: $j13Tr->pageTitle('我的' . ModuleManager::getModuleConfig('Member', 'creditName', '积分')); goto MgHKo; tGzGw: $ktizU->repositoryFilter(function (RepositoryFilter $wPpmz) { $wPpmz->where(array('memberUserId' => MemberUser::id())); }); goto qlytg; zaKZ6: $ktizU->disableCUD()->disableItemOperate(); goto oPll1; vsTIU: } }