1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-27 04:57:39 +08:00
koogua 78bbfd3577 !42 v1.2.1阶段性合并
* 计划任务执行路径,周期
* !39 修复课程分类未过滤
* 优化第三方登录,修复注册密码加密问题
* !33 开放登录阶段性合并
* !24 修复添加课时后进入编辑页面500错误
2020-12-09 18:02:39 +08:00

27 lines
478 B
PHP

<?php
namespace App\Services\Logic\User\Console;
use App\Services\Logic\Service;
use App\Validators\Connect as ConnectValidator;
class ConnectDelete extends Service
{
public function handle($id)
{
$user = $this->getLoginUser();
$validator = new ConnectValidator();
$connect = $validator->checkConnect($id);
$validator->checkOwner($user->id, $connect->user_id);
$connect->deleted = 1;
$connect->update();
}
}