<?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 NHMPt; EWdFd: switch ($AIxhN) { case 'income': $f2U49['whereOperate'] = array('change', '>', '0'); break; case 'payout': $f2U49['whereOperate'] = array('change', '<', '0'); break; } goto sy091; D1dOr: $f2U49 = array(); goto ufi_C; sy091: $Nv2EE = MemberCreditUtil::paginateLog(MemberUser::id(), $tBuXm->getPage(), $tBuXm->getPageSize(), $f2U49); goto oxo7P; oxo7P: return Response::generateSuccessPaginate($tBuXm->getPage(), $tBuXm->getPageSize(), $Nv2EE); goto vg5Co; ufi_C: $XhJFC = $tBuXm->getJsonAsInput('search'); goto XMp0V; NHMPt: $tBuXm = InputPackage::buildFromInput(); goto D1dOr; XMp0V: $AIxhN = $XhJFC->getTrimString('type'); goto EWdFd; vg5Co: } }