修复无法正常完成任务的问题、版本更新至2.2.5
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
b78c16e325
commit
c9ac878f14
@ -568,6 +568,7 @@ class Task extends CommonModel
|
||||
}
|
||||
return $tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* 子任务数
|
||||
*/
|
||||
@ -591,7 +592,7 @@ class Task extends CommonModel
|
||||
$done = 1;
|
||||
if (isset($data['code']) && isset($data['pcode']) && $data['pcode']) {
|
||||
$task = self::where(['code' => $data['pcode']])->field('done')->find();
|
||||
if ($task && !$task['done']) {
|
||||
if ($task && !$task['deleted'] && !$task['done']) {
|
||||
$done = 0;
|
||||
}
|
||||
}
|
||||
@ -605,7 +606,7 @@ class Task extends CommonModel
|
||||
{
|
||||
$hasUnDone = 0;
|
||||
if (isset($data['code'])) {
|
||||
$taskCount = self::where(['pcode' => $data['code'], 'done' => 0])->count('id');
|
||||
$taskCount = self::where(['pcode' => $data['code'], 'done' => 0, 'deleted' => 0])->count('id');
|
||||
if ($taskCount) {
|
||||
$hasUnDone = 1;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ return [
|
||||
// 应用名称
|
||||
'app_name' => 'pearProject',
|
||||
// 应用版本
|
||||
'app_version' => '2.2.4',
|
||||
'app_version' => '2.2.5',
|
||||
// 应用地址
|
||||
'app_host' => '',
|
||||
// 应用调试模式
|
||||
|
Loading…
x
Reference in New Issue
Block a user