perf: 语音消息转文字

This commit is contained in:
kuaifan
2024-05-10 13:15:27 +09:00
parent bf46a00937
commit 426fa63288
13 changed files with 193 additions and 12 deletions

View File

@@ -35,8 +35,12 @@ class Ihttp
if($post) {
if (is_array($post)) {
$filepost = false;
foreach ($post as $name => $value) {
if (is_string($value) && substr($value, 0, 1) == '@') {
foreach ($post as $value) {
if (is_string($value) && str_starts_with($value, '@')) {
$filepost = true;
break;
}
if ($value instanceof \CURLFile) {
$filepost = true;
break;
}