|
|
@ -15,6 +15,7 @@ class ProcessService |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* @param $resource 资源 |
|
|
* @param $insert_audit_flag 是否需要插入审核表 |
|
|
* @param $insert_audit_flag 是否需要插入审核表 |
|
|
* @return int |
|
|
* @return int |
|
|
* 通过流程表 获取资源上传后的状态 |
|
|
* 通过流程表 获取资源上传后的状态 |
|
|
@ -27,10 +28,8 @@ class ProcessService |
|
|
//流程停用开启 上传后状态直接是审核通过
|
|
|
//流程停用开启 上传后状态直接是审核通过
|
|
|
if ($process->stop_using == 1) { |
|
|
if ($process->stop_using == 1) { |
|
|
$status = $this->resource_status_map['success']; |
|
|
$status = $this->resource_status_map['success']; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} elseif ($process->auto_propose == 1) { |
|
|
//自动发起开启 上传后状态直接是等待审核
|
|
|
//自动发起开启 上传后状态直接是等待审核
|
|
|
if ($process->auto_propose == 1) { |
|
|
|
|
|
$status = $this->resource_status_map['wait']; |
|
|
$status = $this->resource_status_map['wait']; |
|
|
if ($insert_audit_flag) { |
|
|
if ($insert_audit_flag) { |
|
|
(new AuditService())->addAudit([$resource->id], 1); |
|
|
(new AuditService())->addAudit([$resource->id], 1); |
|
|
|