修改上报数据

This commit is contained in:
2023-08-16 10:54:26 +08:00
parent a6732021ca
commit fd9c774c13
4 changed files with 70 additions and 27 deletions
+7
View File
@@ -5,6 +5,7 @@ namespace Extend\Detection;
use App\Constants\HttpEnumCode;
use App\Exception\BusinessException;
use App\Model\BasicDetectionOrgan;
use App\Utils\Log;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use Hyperf\Di\Annotation\Inject;
@@ -78,6 +79,12 @@ class Base
$arg = array_merge($arg,$option);
}
// 打印使用
$l = $arg;
unset($l['json']['pictureOfDetectionTube']);
dump($l);
Log::getInstance("请求参数")->info(json_encode($arg,JSON_UNESCAPED_UNICODE));
$response = $this->client->post($path, $arg);
if ($response->getStatusCode() != '200'){