改进 遵循工单通知设置
This commit is contained in:
parent
e5fbf22bb8
commit
383736c41a
@ -36,6 +36,10 @@ public function __construct(ReplyModel $reply)
|
||||
*/
|
||||
public function via(): array
|
||||
{
|
||||
if (! $this->work_order->notify) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$channels = [WeComChannel::class, WebChannel::class];
|
||||
|
||||
if ($this->work_order->status === 'replied') {
|
||||
|
@ -30,6 +30,10 @@ public function __construct(WorkOrderModel $work_order)
|
||||
*/
|
||||
public function via(): array
|
||||
{
|
||||
if (! $this->work_order->notify) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [WeComChannel::class, WebChannel::class];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user