vendor/codeages/biz-order-pay/src/Pay/Dao/Impl/PayTradeDaoImpl.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Codeages\Biz\Pay\Dao\Impl;

use Codeages\Biz\Framework\Context\Biz;
use Codeages\Biz\Pay\Dao\PayTradeDao;
use Codeages\Biz\Framework\Dao\GeneralDaoImpl;

class PayTradeDaoImpl extends GeneralDaoImpl implements PayTradeDao
{
    protected $table = 'biz_pay_trade';

    public function getById($id)
    {
        return $this->getByFields(array(
            'id' => $id
        ));
    }

    public function getByOrderSnAndPlatform($orderSn, $platform)
    {
        return $this->getByFields(array(
            'order_sn' => $orderSn,
            'platform' => $platform
        ));
    }

    public function findByIds($ids)
    {
        return $this->findInField('id', $ids);
    }

    public function findByOrderSns($orderSns)
    {
        return $this->findInField('order_sn', $orderSns);
    }

    public function findByOrderSn($orderSn)
    {
        return $this->findByFields(array(
            'order_sn' => $orderSn,
        ));
    }

    public function getByTradeSn($sn)
    {
        return $this->getByFields(array(
            'trade_sn' => $sn,
        ));
    }

    public function findByTradeSns($sns)
    {
        return $this->findInField('trade_sn', $sns);
    }

    public function getByPlatformSn($platformSn)
    {
        return $this->getByFields(array(
            'platform_sn' => $platformSn,

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。