fix: JSON_UNESCAPED_UNICODE
This commit is contained in:
parent
d9d0837024
commit
df9ec711c5
@ -60,7 +60,7 @@ class RunRemoteProcess
|
|||||||
$decoded = json_decode(
|
$decoded = json_decode(
|
||||||
data_get($activity, 'description'),
|
data_get($activity, 'description'),
|
||||||
associative: true,
|
associative: true,
|
||||||
flags: JSON_THROW_ON_ERROR
|
flags: JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE
|
||||||
);
|
);
|
||||||
} catch (\JsonException $exception) {
|
} catch (\JsonException $exception) {
|
||||||
return '';
|
return '';
|
||||||
@ -164,7 +164,7 @@ class RunRemoteProcess
|
|||||||
|
|
||||||
public function encodeOutput($type, $output)
|
public function encodeOutput($type, $output)
|
||||||
{
|
{
|
||||||
$outputStack = json_decode($this->activity->description, associative: true, flags: JSON_THROW_ON_ERROR);
|
$outputStack = json_decode($this->activity->description, associative: true, flags: JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
|
||||||
|
|
||||||
$outputStack[] = [
|
$outputStack[] = [
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
@ -174,12 +174,12 @@ class RunRemoteProcess
|
|||||||
'order' => $this->getLatestCounter(),
|
'order' => $this->getLatestCounter(),
|
||||||
];
|
];
|
||||||
|
|
||||||
return json_encode($outputStack, flags: JSON_THROW_ON_ERROR);
|
return json_encode($outputStack, flags: JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getLatestCounter(): int
|
protected function getLatestCounter(): int
|
||||||
{
|
{
|
||||||
$description = json_decode($this->activity->description, associative: true, flags: JSON_THROW_ON_ERROR);
|
$description = json_decode($this->activity->description, associative: true, flags: JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
|
||||||
if ($description === null || count($description) === 0) {
|
if ($description === null || count($description) === 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,6 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
}
|
}
|
||||||
private function check_docker_engine()
|
private function check_docker_engine()
|
||||||
{
|
{
|
||||||
ray('Checking Docker Engine');
|
|
||||||
$version = instant_remote_process([
|
$version = instant_remote_process([
|
||||||
"docker info",
|
"docker info",
|
||||||
], $this->server, false);
|
], $this->server, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user