<?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 $pbQhK) { parent::__construct(); $this->api = $pbQhK; } public function index() { $ahibX = MemberMoneyUtil::getTotal(MemberUser::id()); return $this->view('memberMoneyCash.index', array('pageTitle' => '钱包提现', 'total' => $ahibX)); } public function log(WebPage $JcqUq) { goto FyGg_; qc6ND: list($qVdRh, $plloB) = $this->viewPaths('memberMoneyCash.log'); goto XRJ0s; XRJ0s: return $JcqUq->pageTitle('钱包提现')->view($qVdRh)->body($gwmIt); goto fFoZW; VP6dL: $gwmIt->repositoryFilter(function (RepositoryFilter $bu01d) { $bu01d->where(array('memberUserId' => MemberUser::id())); }); goto EILDG; oJq1I: if (Request::isPost()) { return $gwmIt->request(); } goto qc6ND; yYtzx: $gwmIt->disableCUD()->disableItemOperate(); goto LkqPI; LkqPI: $gwmIt->useSimple(function (AbstractField $pZ_lR, $jIWZA, $aaYHa) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoneyCash.logItem', array('item' => $jIWZA)); }); goto oJq1I; FyGg_: $gwmIt = Grid::make('member_money_cash'); goto VP6dL; EILDG: $gwmIt->gridFilter(function (GridFilter $bu01d) { $bu01d->range('created_at', '时间')->datetime(); }); goto yYtzx; fFoZW: } }