<?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\MemberCreditUtil; class MemberCreditController extends ModuleBaseController implements MemberLoginCheck { public function get() { return Response::generateSuccessData(array('total' => MemberCreditUtil::getTotal(MemberUser::id()))); } public function log() { goto BiYsa; BiYsa: $WZ8dY = InputPackage::buildFromInput(); goto Q9Ciq; Q9Ciq: $iNhXN = array(); goto RXlWZ; VbONF: $y6j27 = MemberCreditUtil::paginateLog(MemberUser::id(), $WZ8dY->getPage(), $WZ8dY->getPageSize(), $iNhXN); goto VdFHg; VdFHg: return Response::generateSuccessPaginate($WZ8dY->getPage(), $WZ8dY->getPageSize(), $y6j27); goto yCAea; NogGN: switch ($EpKdG) { case 'income': $iNhXN['whereOperate'] = array('change', '>', '0'); break; case 'payout': $iNhXN['whereOperate'] = array('change', '<', '0'); break; } goto VbONF; RXlWZ: $vG4Gl = $WZ8dY->getJsonAsInput('search'); goto doxee; doxee: $EpKdG = $vG4Gl->getTrimString('type'); goto NogGN; yCAea: } }