diff --git a/app/Services/Logic/Notice/External/ConsultReply.php b/app/Services/Logic/Notice/External/ConsultReply.php index 4df0f7ef..a9f89188 100644 --- a/app/Services/Logic/Notice/External/ConsultReply.php +++ b/app/Services/Logic/Notice/External/ConsultReply.php @@ -82,12 +82,7 @@ class ConsultReply extends LogicService $task = new TaskModel(); - $itemInfo = [ - 'consult' => ['id' => $consult->id], - ]; - $task->item_id = $consult->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_NOTICE_CONSULT_REPLY; $task->priority = TaskModel::PRIORITY_LOW; $task->status = TaskModel::STATUS_PENDING; diff --git a/app/Services/Logic/Notice/External/DingTalk/ConsultCreate.php b/app/Services/Logic/Notice/External/DingTalk/ConsultCreate.php index 6ffd9c00..26f176b9 100644 --- a/app/Services/Logic/Notice/External/DingTalk/ConsultCreate.php +++ b/app/Services/Logic/Notice/External/DingTalk/ConsultCreate.php @@ -58,12 +58,7 @@ class ConsultCreate extends DingTalkNotice $task = new TaskModel(); - $itemInfo = [ - 'consult' => ['id' => $consult->id], - ]; - $task->item_id = $consult->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_STAFF_NOTICE_CONSULT_CREATE; $task->priority = TaskModel::PRIORITY_LOW; $task->status = TaskModel::STATUS_PENDING; @@ -71,4 +66,4 @@ class ConsultCreate extends DingTalkNotice $task->create(); } -} \ No newline at end of file +} diff --git a/app/Services/Logic/Notice/External/DingTalk/PointGiftRedeem.php b/app/Services/Logic/Notice/External/DingTalk/PointGiftRedeem.php index 7ca2f9a1..0986f864 100644 --- a/app/Services/Logic/Notice/External/DingTalk/PointGiftRedeem.php +++ b/app/Services/Logic/Notice/External/DingTalk/PointGiftRedeem.php @@ -40,12 +40,7 @@ class PointGiftRedeem extends DingTalkNotice $task = new TaskModel(); - $itemInfo = [ - 'point_gift_redeem' => ['id' => $redeem->id], - ]; - $task->item_id = $redeem->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_STAFF_NOTICE_POINT_GIFT_REDEEM; $task->priority = TaskModel::PRIORITY_MIDDLE; $task->status = TaskModel::STATUS_PENDING; @@ -53,4 +48,4 @@ class PointGiftRedeem extends DingTalkNotice $task->create(); } -} \ No newline at end of file +} diff --git a/app/Services/Logic/Notice/External/DingTalk/TeacherLive.php b/app/Services/Logic/Notice/External/DingTalk/TeacherLive.php index 5f3ac152..2bd196d0 100644 --- a/app/Services/Logic/Notice/External/DingTalk/TeacherLive.php +++ b/app/Services/Logic/Notice/External/DingTalk/TeacherLive.php @@ -42,12 +42,7 @@ class TeacherLive extends DingTalkNotice $task = new TaskModel(); - $itemInfo = [ - 'live' => ['id' => $live->id], - ]; - $task->item_id = $live->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_STAFF_NOTICE_TEACHER_LIVE; $task->priority = TaskModel::PRIORITY_LOW; $task->status = TaskModel::STATUS_PENDING; @@ -55,4 +50,4 @@ class TeacherLive extends DingTalkNotice $task->create(); } -} \ No newline at end of file +} diff --git a/app/Services/Logic/Notice/External/LiveBegin.php b/app/Services/Logic/Notice/External/LiveBegin.php index 0461736c..d3e53144 100644 --- a/app/Services/Logic/Notice/External/LiveBegin.php +++ b/app/Services/Logic/Notice/External/LiveBegin.php @@ -26,7 +26,7 @@ class LiveBegin extends LogicService $smsNoticeEnabled = $this->smsNoticeEnabled(); $courseUser = $task->item_info['course_user']; - $chapterId = $task->item_info['chapter']['id']; + $chapterId = $task->item_id; $courseRepo = new CourseRepo(); @@ -84,9 +84,6 @@ class LiveBegin extends LogicService 'course_id' => $courseUser->course_id, 'user_id' => $courseUser->user_id, ], - 'chapter' => [ - 'id' => $chapter->id, - ], ]; $task->item_id = $chapter->id; diff --git a/app/Services/Logic/Notice/External/OrderFinish.php b/app/Services/Logic/Notice/External/OrderFinish.php index 566b3995..26e431fa 100644 --- a/app/Services/Logic/Notice/External/OrderFinish.php +++ b/app/Services/Logic/Notice/External/OrderFinish.php @@ -67,12 +67,7 @@ class OrderFinish extends LogicService $task = new TaskModel(); - $itemInfo = [ - 'order' => ['id' => $order->id], - ]; - $task->item_id = $order->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_NOTICE_ORDER_FINISH; $task->priority = TaskModel::PRIORITY_HIGH; $task->status = TaskModel::STATUS_PENDING; diff --git a/app/Services/Logic/Notice/External/PointGoodsDeliver.php b/app/Services/Logic/Notice/External/PointGoodsDeliver.php index ab104179..59ccf324 100644 --- a/app/Services/Logic/Notice/External/PointGoodsDeliver.php +++ b/app/Services/Logic/Notice/External/PointGoodsDeliver.php @@ -63,12 +63,7 @@ class PointGoodsDeliver extends LogicService $task = new TaskModel(); - $itemInfo = [ - 'redeem' => ['id' => $redeem->id], - ]; - $task->item_id = $redeem->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_NOTICE_POINT_GOODS_DELIVER; $task->priority = TaskModel::PRIORITY_MIDDLE; $task->status = TaskModel::STATUS_PENDING; diff --git a/app/Services/Logic/Notice/External/RefundFinish.php b/app/Services/Logic/Notice/External/RefundFinish.php index ac9b8a21..bb46c73a 100644 --- a/app/Services/Logic/Notice/External/RefundFinish.php +++ b/app/Services/Logic/Notice/External/RefundFinish.php @@ -67,12 +67,7 @@ class RefundFinish extends LogicService $task = new TaskModel(); - $itemInfo = [ - 'refund' => ['id' => $refund->id], - ]; - $task->item_id = $refund->id; - $task->item_info = $itemInfo; $task->item_type = TaskModel::TYPE_NOTICE_REFUND_FINISH; $task->priority = TaskModel::PRIORITY_MIDDLE; $task->status = TaskModel::STATUS_PENDING;