| @@ 47-57 (lines=11) @@ | ||
| 44 | * |
|
| 45 | * @return \Psr\Http\Message\StreamInterface |
|
| 46 | */ |
|
| 47 | public function getWXACode($path, $width = 430, $autoColor = false, $lineColor = ['r' => 0, 'g' => 0, 'b' => 0]) |
|
| 48 | { |
|
| 49 | $params = [ |
|
| 50 | 'path' => $path, |
|
| 51 | 'width' => $width, |
|
| 52 | 'auto_color' => $autoColor, |
|
| 53 | 'line_color' => $lineColor, |
|
| 54 | ]; |
|
| 55 | ||
| 56 | return $this->getStream(self::API_GET_WXACODE, $params); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Get WXACode unlimit. |
|
| @@ 69-79 (lines=11) @@ | ||
| 66 | * |
|
| 67 | * @return \Psr\Http\Message\StreamInterface |
|
| 68 | */ |
|
| 69 | public function getWXACodeUnlimit($scene, $width = 430, $autoColor = false, $lineColor = ['r' => 0, 'g' => 0, 'b' => 0]) |
|
| 70 | { |
|
| 71 | $params = [ |
|
| 72 | 'scene' => $scene, |
|
| 73 | 'width' => $width, |
|
| 74 | 'auto_color' => $autoColor, |
|
| 75 | 'line_color' => $lineColor, |
|
| 76 | ]; |
|
| 77 | ||
| 78 | return $this->getStream(self::API_GET_WXACODE_UNLIMIT, $params); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Create QRCode. |
|