vendor/codeages/qiqiuyun-php-sdk/src/QiQiuYunSDK.php

(开头部分) 1KB

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

<?php

namespace QiQiuYun\SDK;

use Psr\Log\LoggerInterface;
use QiQiuYun\SDK\HttpClient\ClientInterface;
use QiQiuYun\SDK\Exception\SDKException;

class QiQiuYunSDK
{
    protected $options;

    protected $services = array();

    protected $auth;

    protected $logger;

    protected $httpClient;

    public function __construct(array $options, LoggerInterface $logger = null, ClientInterface $httpClient = null)
    {
        if (empty($options['access_key'])) {
            throw new SDKException('`access_key` param is missing.');
        }
        if (empty($options['secret_key'])) {
            throw new SDKException('`secret_key` param is missing.');
        }

        $this->options = $options;
        $this->auth = $this->createAuth($options['access_key'], $options['secret_key']);
        $this->logger = $logger;
        $this->httpClient = $httpClient;
    }

    /**
     * 获取短信服务
     *
     * @return \QiQiuYun\SDK\Service\SmsService
     */
    public function getSmsService()
    {
        return $this->getService('Sms');
    }

    /**
     * 获取云资源播放服务
     *
     * @return \QiQiuYun\SDK\Service\PlayService
     */
    public function getPlayService()
    {
        return $this->getService('Play');
    }

    /**
     * 获取云资源播放服务
     *
     * @return \QiQiuYun\SDK\Service\PlayV2Service
     */

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

AI 解读 AI

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

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