From 7dbce8b1e84cf5451084e9ab2d8abf32284e3f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 8 Jul 2022 17:40:25 +0800 Subject: [PATCH] modify plugin name --- ClientAbstracts.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ClientAbstracts.php b/ClientAbstracts.php index 8f21a50..d71c5ae 100644 --- a/ClientAbstracts.php +++ b/ClientAbstracts.php @@ -645,15 +645,14 @@ abstract class ClientAbstracts implements IClient /** * @param $newData - * @return string + * @return string|null */ - protected function mergeParams($newData): string + protected function mergeParams($newData): ?string { - if (empty($data)) return ''; if (!is_string($newData)) { return $this->toRequest($newData); } - return $newData; + return (string)$newData; }