diff --git a/application/project/behavior/Project.php b/application/project/behavior/Project.php index db7f702..4fc8db2 100644 --- a/application/project/behavior/Project.php +++ b/application/project/behavior/Project.php @@ -27,7 +27,6 @@ class Project */ public function run($data) { - Log::init(['path' => 'log/project']); $logData = ['member_code' => $data['memberCode'], 'source_code' => $data['sourceCode'], 'remark' => $data['remark'], 'type' => $data['type'], 'content' => $data['content'], 'is_comment' => $data['isComment'], 'to_member_code' => $data['toMemberCode'], 'create_time' => nowTime(), 'code' => createUniqueCode('projectLog'), 'action_type' => 'project']; $project = \app\common\Model\Project::where(['code' => $data['sourceCode']])->find(); $logData['project_code'] = $project['code']; diff --git a/application/project/behavior/Task.php b/application/project/behavior/Task.php index 03fdc2c..95319bf 100644 --- a/application/project/behavior/Task.php +++ b/application/project/behavior/Task.php @@ -35,7 +35,6 @@ class Task */ public function run($data) { - Log::init(['path' => 'log/task']); $isRobot = (isset($data['data']) && isset($data['data']['is_robot']) && $data['data']['is_robot']) ? 1 : 0; $logData = ['member_code' => $data['memberCode'], 'source_code' => $data['taskCode'], 'remark' => $data['remark'], 'type' => $data['type'], 'content' => $data['content'], 'is_comment' => $data['isComment'], 'to_member_code' => $data['toMemberCode'], 'create_time' => nowTime(), 'code' => createUniqueCode('projectLog'), 'action_type' => 'task', 'is_robot' => $isRobot]; $task = \app\common\Model\Task::where(['code' => $data['taskCode']])->find(); diff --git a/application/project/behavior/Version.php b/application/project/behavior/Version.php index c704e36..84ae963 100644 --- a/application/project/behavior/Version.php +++ b/application/project/behavior/Version.php @@ -34,7 +34,6 @@ class Version */ public function run($data) { - Log::init(['path' => 'log/version']); $logData = ['member_code' => $data['memberCode'], 'source_code' => $data['versionCode'], 'remark' => $data['remark'], 'type' => $data['type'], 'content' => $data['content'], 'create_time' => nowTime(), 'code' => createUniqueCode('projectVersionLog')]; $version = ProjectVersion::where(['code' => $data['versionCode']])->find(); $logData['features_code'] = $version['features_code'];