<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Web\Controller; 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\Repository\Filter\RepositoryFilter; use Module\Member\Auth\MemberUser; use Module\Member\Support\MemberLoginCheck; use Module\Member\Util\MemberMoneyUtil; class MemberMoneyCashController extends MemberFrameController implements MemberLoginCheck { private $api; public function __construct(\Module\Member\Api\Controller\MemberMoneyCashController $Us1dU) { parent::__construct(); $this->api = $Us1dU; } public function index() { $mAmuv = MemberMoneyUtil::getTotal(MemberUser::id()); return $this->view('memberMoneyCash.index', array('pageTitle' => '钱包提现', 'total' => $mAmuv)); } public function log(WebPage $iXUoW) { goto Y4WDi; DDiAc: $W3CVY->useSimple(function (AbstractField $jJyrp, $YaV4m, $DbHm9) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoneyCash.logItem', array('item' => $YaV4m)); }); goto JZZlS; BmJxA: list($kF488, $NMB1l) = $this->viewPaths('memberMoneyCash.log'); goto uZV0u; bXLXL: $W3CVY->disableCUD()->disableItemOperate(); goto DDiAc; vOh3U: $W3CVY->repositoryFilter(function (RepositoryFilter $mHisM) { $mHisM->where(array('memberUserId' => MemberUser::id())); }); goto sxrzO; Y4WDi: $W3CVY = Grid::make('member_money_cash'); goto vOh3U; uZV0u: return $iXUoW->pageTitle('钱包提现')->view($kF488)->body($W3CVY); goto taIYM; sxrzO: $W3CVY->gridFilter(function (GridFilter $mHisM) { $mHisM->range('created_at', '时间')->datetime(); }); goto bXLXL; JZZlS: if (Request::isPost()) { return $W3CVY->request(); } goto BmJxA; taIYM: } }