Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit ab5c699

Browse files
author
丁海军
authored
Merge pull request #8 from justmd5/develop
Develop
2 parents f1b0cf0 + 95afacd commit ab5c699

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

src/Core/API.php

+7-17
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ class API extends AbstractAPI
2020
use ArgumentProcessingTrait;
2121

2222
const BASE_API = 'https://api.ai.qq.com/fcgi-bin/';
23-
24-
/**
25-
* @var string
26-
*/
27-
protected $category;
28-
/**
29-
* @var Signature
30-
*/
3123
protected $signature;
3224
protected $classify;
3325
protected $filter;
3426

27+
/**
28+
* API constructor.
29+
*
30+
* @param Signature $signature
31+
* @param string $classify
32+
* @param array $filter
33+
*/
3534
public function __construct(Signature $signature, $classify, $filter)
3635
{
3736
$this->signature = $signature;
@@ -75,13 +74,4 @@ public function request($method, $params = [], $files = [])
7574
'msg' => sprintf('返回结果:[%s]', json_encode($result, JSON_UNESCAPED_UNICODE)),
7675
];
7776
}
78-
79-
/**
80-
* Push guzzle middleware before request.
81-
*
82-
* @return mixed
83-
*/
84-
public function middlewares()
85-
{
86-
}
8777
}

src/Core/Traits/ArgumentProcessingTrait.php

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
trait ArgumentProcessingTrait
88
{
9+
/**
10+
* @param Signature $signature
11+
* @param array $params
12+
*
13+
* @return array
14+
*/
915
public function processParams(Signature $signature, $params)
1016
{
1117
if (empty($params['nonce_str'])) {

0 commit comments

Comments
 (0)