This commit is contained in:
commie
2026-01-08 05:42:44 +08:00
parent 7439a4a794
commit c153975eed
1976 changed files with 776 additions and 133 deletions
View File
View File
Regular → Executable
View File
Regular → Executable
+4 -2
View File
@@ -82,7 +82,9 @@ class Utils
* @return array 响应数据
*/
public static function send(string $path, array $data, string $errMsg, string $token = ''): array|bool
{
{
$token = $token ? $token : Utils::getAdminToken();
$url = Url::buildUrl($path);
//cp($url);
$res = self::request($url, $data, $token);
@@ -100,7 +102,7 @@ class Utils
try {
$url = Url::buildUrl($path);
cp($url);
//cp($url);
return json_decode(self::request($url, $data, $token), true);
} catch (GuzzleException $e) {
return ['errCode' => $e->getCode(), 'errMsg' => $errMsg, 'errDlt' => $e->getMessage()];
View File