<?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 $N0nrY) { parent::__construct(); $this->api = $N0nrY; } public function index() { $EWgvi = MemberMoneyUtil::getTotal(MemberUser::id()); return $this->view('memberMoneyCash.index', array('pageTitle' => '钱包提现', 'total' => $EWgvi)); } public function log(WebPage $j13Tr) { goto n5_l9; sHv4V: return $j13Tr->pageTitle('钱包提现')->view($RzPgc)->body($ktizU); goto PhnDQ; slhu8: $ktizU->useSimple(function (AbstractField $UdGHQ, $Z32UA, $OPJGK) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoneyCash.logItem', array('item' => $Z32UA)); }); goto dwluC; PcMB2: list($RzPgc, $FViDa) = $this->viewPaths('memberMoneyCash.log'); goto sHv4V; XPHo4: $ktizU->disableCUD()->disableItemOperate(); goto slhu8; n5_l9: $ktizU = Grid::make('member_money_cash'); goto eQ2rs; eQ2rs: $ktizU->repositoryFilter(function (RepositoryFilter $wPpmz) { $wPpmz->where(array('memberUserId' => MemberUser::id())); }); goto V8gpg; dwluC: if (Request::isPost()) { return $ktizU->request(); } goto PcMB2; V8gpg: $ktizU->gridFilter(function (GridFilter $wPpmz) { $wPpmz->range('created_at', '时间')->datetime(); }); goto XPHo4; PhnDQ: } }