<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Api\Controller; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Member\Auth\MemberUser; use Module\Member\Support\MemberLoginCheck; use Module\Member\Util\MemberMoneyUtil; class MemberMoneyController extends ModuleBaseController implements MemberLoginCheck { public function get() { return Response::generateSuccessData(array('total' => MemberMoneyUtil::getTotal(MemberUser::id()))); } public function log() { goto Fg5f0; Fg5f0: $WZ8dY = InputPackage::buildFromInput(); goto Oaomv; rqJHL: switch ($EpKdG) { case 'income': $iNhXN['whereOperate'] = array('change', '>', '0'); break; case 'payout': $iNhXN['whereOperate'] = array('change', '<', '0'); break; } goto sV3rs; Oaomv: $iNhXN = array(); goto rV482; rV482: $vG4Gl = $WZ8dY->getSearchInput(); goto vaSa8; vaSa8: $EpKdG = $vG4Gl->getTrimString('type'); goto rqJHL; Zm8pg: return Response::generateSuccessPaginate($WZ8dY->getPage(), $WZ8dY->getPageSize(), $y6j27); goto h4bMh; sV3rs: $y6j27 = MemberMoneyUtil::paginateLog(MemberUser::id(), $WZ8dY->getPage(), $WZ8dY->getPageSize(), $iNhXN); goto Zm8pg; h4bMh: } }