|
|
@@ -94,6 +94,8 @@ class ReproduceErrorCommand extends Command
|
|
|
$this->error("请求记录中缺少 protobuf_json 数据");
|
|
|
return 1;
|
|
|
}
|
|
|
+ $this->info("请求数据");
|
|
|
+ dump(json_decode($requestLog->protobuf_json,true));
|
|
|
|
|
|
// 解析 headers 获取 token
|
|
|
$token = $this->extractToken($requestLog->headers);
|
|
|
@@ -121,15 +123,15 @@ class ReproduceErrorCommand extends Command
|
|
|
}
|
|
|
|
|
|
// 输出结果
|
|
|
- $this->info("请求完成,响应结果:");
|
|
|
- $this->line("状态码: " . $response['status_code']);
|
|
|
- $this->line("响应头:");
|
|
|
- foreach ($response['headers'] as $name => $values) {
|
|
|
- $this->line(" {$name}: " . implode(', ', $values));
|
|
|
- }
|
|
|
+// $this->info("请求完成,响应结果:");
|
|
|
+// $this->line("状态码: " . $response['status_code']);
|
|
|
+// $this->line("响应头:");
|
|
|
+// foreach ($response['headers'] as $name => $values) {
|
|
|
+// $this->line(" {$name}: " . implode(', ', $values));
|
|
|
+// }
|
|
|
$this->line("响应内容:");
|
|
|
- $this->line($response['body']);
|
|
|
|
|
|
+ dump(json_decode($response['body'],true));
|
|
|
return 0;
|
|
|
}
|
|
|
|