更新
This commit is contained in:
parent
f684e31e2e
commit
0bc7aba8ca
@ -37,23 +37,7 @@ class Api
|
|||||||
return to_assign(1, '已存在');
|
return to_assign(1, '已存在');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sid = TaskList::strict(false)->field(true)->insertGetId($param);
|
TaskList::strict(false)->field(true)->insertGetId($param);
|
||||||
if ($sid) {
|
|
||||||
add_log('add', $sid, $param);
|
|
||||||
$log_data = array(
|
|
||||||
'module' => 'task',
|
|
||||||
'task_id' => $sid,
|
|
||||||
'new_content' => $param['title'],
|
|
||||||
'field' => 'new',
|
|
||||||
'action' => 'add',
|
|
||||||
'admin_id' => 1,
|
|
||||||
'create_time' => time(),
|
|
||||||
);
|
|
||||||
Db::name('ProjectLog')->strict(false)->field(true)->insert($log_data);
|
|
||||||
//发消息
|
|
||||||
//$users = $param['director_uid'];
|
|
||||||
//sendMessage($users, 21, ['title' => $param['title'],'from_uid' => $this->uid, 'create_time'=>date('Y-m-d H:i:s',time()), 'action_id' => $sid]);
|
|
||||||
}
|
|
||||||
return to_assign();
|
return to_assign();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user