\WeChat\ContractsMyCurlFile

自定义CURL文件类 Class MyCurlFile

Summary

Methods
Properties
Constants
__construct()
get()
__destruct()
$datatype
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$datatype

$datatype : string

当前数据类型

Type

string

Methods

__construct()

__construct(string|array  $filename, string  $mimetype = '', string  $postname = '') 

MyCurlFile constructor.

Parameters

string|array $filename
string $mimetype
string $postname

Throws

\WeChat\Exceptions\LocalCacheException

get()

get() : \CURLFile|string

获取文件上传信息

Throws

\WeChat\Exceptions\LocalCacheException

Returns

\CURLFile|string

__destruct()

__destruct() 

通用销毁函数清理缓存文件 提前删除过期因此放到了网络请求之后