<?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 bRB4A; HFNUs: return Response::generateSuccessPaginate($Km8YS->getPage(), $Km8YS->getPageSize(), $fPAoT); goto S1AAi; bRB4A: $Km8YS = InputPackage::buildFromInput(); goto RfvNs; yhJeJ: $MQD5z = $Km8YS->getJsonAsInput('search'); goto eUe0o; eUe0o: $HWA34 = $MQD5z->getTrimString('type'); goto FrYma; FrYma: switch ($HWA34) { case 'income': $r2pbP['whereOperate'] = array('change', '>', '0'); break; case 'payout': $r2pbP['whereOperate'] = array('change', '<', '0'); break; } goto yC6vo; yC6vo: $fPAoT = MemberCreditUtil::paginateLog(MemberUser::id(), $Km8YS->getPage(), $Km8YS->getPageSize(), $r2pbP); goto HFNUs; RfvNs: $r2pbP = array(); goto yhJeJ; S1AAi: } }