<?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 uERr5; iTNNr: $g_4iP = $z9cxW->getTrimString('type'); goto vJWE9; crREi: $AQ4wg = array(); goto j5QqB; bpTcY: return Response::generateSuccessPaginate($Nw6ws->getPage(), $Nw6ws->getPageSize(), $fFBu8); goto Iwxa2; j5QqB: $z9cxW = $Nw6ws->getSearchInput(); goto iTNNr; Xb8CX: $fFBu8 = MemberMoneyUtil::paginateLog(MemberUser::id(), $Nw6ws->getPage(), $Nw6ws->getPageSize(), $AQ4wg); goto bpTcY; uERr5: $Nw6ws = InputPackage::buildFromInput(); goto crREi; vJWE9: switch ($g_4iP) { case 'income': $AQ4wg['whereOperate'] = array('change', '>', '0'); break; case 'payout': $AQ4wg['whereOperate'] = array('change', '<', '0'); break; } goto Xb8CX; Iwxa2: } }