测试代码高亮


dsdsds

php

public function incomeChanging(IncomeChangingDTO $incomeChangingDTO): IncomeChangedResponseDTO
    {
        $incomeChangedResponseDTO = new IncomeChangedResponseDTO();
        try {
            //查询商户信息
            $merchant = $this->merchantService->getByMchId($incomeChangingDTO->mchId, true);
            if (empty($merchant)) {
                $incomeChangedResponseDTO->status = false;
                $incomeChangedResponseDTO->msg = '商户账户异常';
                return $incomeChangedResponseDTO;
            }

            $balanceChangingDTO = new BalanceChangingDTO();
            $balanceChangingDTO->businessType = $incomeChangingDTO->businessType;
            $balanceChangingDTO->mode = $incomeChangingDTO->mode;
            $balanceChangingDTO->amount = $incomeChangingDTO->amount;
            $balanceChangingDTO->remark = $incomeChangingDTO->remark;
            $balanceChangingDTO->orderId = $incomeChangingDTO->orderId;
            switch ($incomeChangingDTO->mode) {
                case FundsConstant::MODE_INCOME_DRAW_REFUND:
                case FundsConstant::MODE_INCOME_TRANSFER_PAY_REFUND:
                case FundsConstant::MODE_INCOME_UNFREEZE:
                    if ($incomeChangingDTO->mode == FundsConstant::MODE_INCOME_UNFREEZE) {
                        //判断金额
                        if (bccomp($incomeChangingDTO->amount, $merchant->freeze_amount, 2) === 1) {
                            $incomeChangedResponseDTO->status = false;
                            $incomeChangedResponseDTO->msg = '冻结账户余额不足';
                            return $incomeChangedResponseDTO;
                        }
public function incomeChanging(IncomeChangingDTO $incomeChangingDTO): IncomeChangedResponseDTO
    {
        $incomeChangedResponseDTO = new IncomeChangedResponseDTO();
        try {
            //查询商户信息
            $merchant = $this->merchantService->getByMchId($incomeChangingDTO->mchId, true);
            if (empty($merchant)) {
                $incomeChangedResponseDTO->status = false;
                $incomeChangedResponseDTO->msg = '商户账户异常';
                return $incomeChangedResponseDTO;
            }

            $balanceChangingDTO = new BalanceChangingDTO();
            $balanceChangingDTO->businessType = $incomeChangingDTO->businessType;
            $balanceChangingDTO->mode = $incomeChangingDTO->mode;
            $balanceChangingDTO->amount = $incomeChangingDTO->amount;
            $balanceChangingDTO->remark = $incomeChangingDTO->remark;
            $balanceChangingDTO->orderId = $incomeChangingDTO->orderId;
            switch ($incomeChangingDTO->mode) {
                case FundsConstant::MODE_INCOME_DRAW_REFUND:
                case FundsConstant::MODE_INCOME_TRANSFER_PAY_REFUND:
                case FundsConstant::MODE_INCOME_UNFREEZE:
                    if ($incomeChangingDTO->mode == FundsConstant::MODE_INCOME_UNFREEZE) {
                        //判断金额
                        if (bccomp($incomeChangingDTO->amount, $merchant->freeze_amount, 2) === 1) {
                            $incomeChangedResponseDTO->status = false;
                            $incomeChangedResponseDTO->msg = '冻结账户余额不足';
                            return $incomeChangedResponseDTO;
                        }
  search:
  path: search.xml
  field: post
    public function handle(Model $model)
    {
        $merchantDrawAuditDTO = new MerchantDrawAuditDTO();
        $merchantDrawAuditDTO->id = $model->id;
        $merchantDrawAuditDTO->isPassed = true;
        $merchantDrawAuditDTO->remark = '';
        $incomeChanging = App::make('merchantDraw')->audit($merchantDrawAuditDTO);
        if (!$incomeChanging->status) {
            return $this->response()->error($incomeChanging->msg)->refresh();
        }
        return $this->response()->success('操作成功')->refresh();
    }

ddd

html

html22

hss

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h2>ddddd</h2>
</body>
</html>

text

  npm install hexo-generator-search --save

文章作者: suxiaolong
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 suxiaolong !
评论
  目录