RuleController.class.php
826 Bytes
<?php
/**
* 开票规则详情接口
* User: liyifei2012it
* Date: 18/3/5
* Time: 17:07
*/
namespace Apicp\Controller\Invoice;
use Common\Common\Constant;
use Common\Common\Invoice;
class RuleController extends AbstractController
{
/**
* Rule
* @author liyifei
* @desc 开票规则详情接口
* @return array 开票规则详情
array(
'min_amount' => 2000, // 最小开票金额(单位:分)
'max_amount' => 3000, // 最大开票金额(单位:分)
)
*/
public function Index_post()
{
$invoiceServ = &Invoice::instance();
$maxAmount = $invoiceServ->fetchEnableAmount();
$this->_result = [
'min_amount' => Constant::INVOICE_MIN_AMOUNT,
'max_amount' => $maxAmount,
];
}
}