|
...
|
...
|
@@ -2,12 +2,9 @@ |
|
|
|
|
|
|
|
namespace App\Http\Logic\Bside\Blog;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Helper\Common;
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Blog\Blog;
|
|
|
|
use App\Models\Blog\BlogCategory as BlogCategoryModel;
|
|
|
|
use App\Models\Com\AssociationCate;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Services\CosService;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
...
|
...
|
@@ -136,11 +133,9 @@ class BlogLogic extends BaseLogic |
|
|
|
public function blogDel(){
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$assCate = new AssociationCate();
|
|
|
|
foreach ($this->param['id'] as $id){
|
|
|
|
$this->delRoute($id);
|
|
|
|
$this->model->del(['id'=>$id]);
|
|
|
|
$assCate->del(['type_id'=>$id,'type'=>$assCate::BLOG_CATE]);
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
|
|
}catch (Exception $e){
|
...
|
...
|
|