<?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 w9d8J; u32q5: $fPAoT = MemberMoneyUtil::paginateLog(MemberUser::id(), $Km8YS->getPage(), $Km8YS->getPageSize(), $r2pbP); goto bLB8B; w9d8J: $Km8YS = InputPackage::buildFromInput(); goto LUtYg; bLB8B: return Response::generateSuccessPaginate($Km8YS->getPage(), $Km8YS->getPageSize(), $fPAoT); goto aRavb; uW2HY: $MQD5z = $Km8YS->getSearchInput(); goto iDNmD; LUtYg: $r2pbP = array(); goto uW2HY; iDNmD: $HWA34 = $MQD5z->getTrimString('type'); goto LZISH; LZISH: switch ($HWA34) { case 'income': $r2pbP['whereOperate'] = array('change', '>', '0'); break; case 'payout': $r2pbP['whereOperate'] = array('change', '<', '0'); break; } goto u32q5; aRavb: } }