fix: 修复客户端旧版本更新任务出现已完成列表中有状态为“进行中”的情况

This commit is contained in:
kuaifan
2022-01-13 11:48:33 +08:00
parent 605aee35c4
commit d951da2c02
3 changed files with 18 additions and 1 deletions

View File

@@ -490,6 +490,10 @@ class ProjectTask extends AbstractModel
public function updateTask($data, &$updateMarking = [])
{
AbstractModel::transaction(function () use ($data, &$updateMarking) {
// 判断版本
if (version_compare(Base::getClientVersion(), '0.6.0', '<')) {
throw new ApiException('当前版本过低');
}
// 工作流
if (Arr::exists($data, 'flow_item_id')) {
if ($this->flow_item_id == $data['flow_item_id']) {