<?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 ZW500; jPidt: switch ($g_4iP) { case 'income': $AQ4wg['whereOperate'] = array('change', '>', '0'); break; case 'payout': $AQ4wg['whereOperate'] = array('change', '<', '0'); break; } goto t3qZP; t3qZP: $fFBu8 = MemberCreditUtil::paginateLog(MemberUser::id(), $Nw6ws->getPage(), $Nw6ws->getPageSize(), $AQ4wg); goto WXgkM; e38TL: $z9cxW = $Nw6ws->getJsonAsInput('search'); goto dE50a; hEGQL: $AQ4wg = array(); goto e38TL; dE50a: $g_4iP = $z9cxW->getTrimString('type'); goto jPidt; ZW500: $Nw6ws = InputPackage::buildFromInput(); goto hEGQL; WXgkM: return Response::generateSuccessPaginate($Nw6ws->getPage(), $Nw6ws->getPageSize(), $fFBu8); goto TM3kp; TM3kp: } }