<?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 wimD_; msjSa: return Response::generateSuccessPaginate($tBuXm->getPage(), $tBuXm->getPageSize(), $Nv2EE); goto YwmUI; mjnYe: $AIxhN = $XhJFC->getTrimString('type'); goto iZFnR; vjnnx: $XhJFC = $tBuXm->getSearchInput(); goto mjnYe; iZFnR: switch ($AIxhN) { case 'income': $f2U49['whereOperate'] = array('change', '>', '0'); break; case 'payout': $f2U49['whereOperate'] = array('change', '<', '0'); break; } goto lvby7; wimD_: $tBuXm = InputPackage::buildFromInput(); goto fZ3VD; fZ3VD: $f2U49 = array(); goto vjnnx; lvby7: $Nv2EE = MemberMoneyUtil::paginateLog(MemberUser::id(), $tBuXm->getPage(), $tBuXm->getPageSize(), $f2U49); goto msjSa; YwmUI: } }