test
This commit is contained in:
@@ -199,12 +199,18 @@ class VirtualContextBuilder
|
||||
*/
|
||||
public function currentStep(string $step): self
|
||||
{
|
||||
// 自动从环境配置加载该步骤的时长(如果未手动设置)
|
||||
$duration = $this->processStatus->duration;
|
||||
if ($duration === null && isset($this->stepDurations[$step])) {
|
||||
$duration = $this->stepDurations[$step];
|
||||
}
|
||||
|
||||
$this->processStatus = new ProcessStatus(
|
||||
currentStep: $step,
|
||||
processType: $this->processStatus->processType,
|
||||
batchNo: $this->processStatus->batchNo,
|
||||
actionStartTime: $this->processStatus->actionStartTime,
|
||||
duration: $this->processStatus->duration,
|
||||
duration: $duration,
|
||||
previousAction: $this->processStatus->previousAction
|
||||
);
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user