https://www.workerman.net/plugin/94
现在这样报错
GuzzleHttp\Exception\InvalidArgumentException: You cannot use form_params and multipart at the same time. Use the form_params option if you want to send application/x-www-form-urlencoded requests, and the multipart option to send multipart/form-data requests
看看源码,多传了个参数
form_params
$response = Http::attach('filename', file_get_contents('1.txt'), '1.txt', [
'enctype' => 'multipart/form-data'
])
->withBasicAuth($a, $b)
->post('https://api.aa.cn/v3');