Kaydet (Commit) 8d71f912 authored tarafından Baran Sekin's avatar Baran Sekin

ExtensionJob problem

üst ba221a5d
......@@ -545,6 +545,12 @@ class OneController extends Controller
}
$command = generateSandboxCommand(server(), $extension, extension()->id, auth()->id(), "", "null", $extension["verification"],$extensionDb);
$output = shell_exec($command);
if(is_json($output)){
$message = json_decode($output);
if(isset($message->message)){
$output = $message->message;
}
}
$sessions = \App\TmpSession::where('session_id', session()->getId())->get();
foreach($sessions as $session){
......
......@@ -32,7 +32,7 @@ class ExtensionJob implements ShouldQueue
$this->function = $function;
$this->parameters = $parameters;
$this->session = session()->all();
$this->cookie = $_COOKIE["liman_session"];
$this->cookie = isset($_COOKIE["liman_session"]) ? $_COOKIE["liman_session"] : '';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment