|
...
|
...
|
@@ -16,6 +16,7 @@ use App\Models\Com\UpdateOldInfo; |
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\News\NewsCategory;
|
|
|
|
use App\Models\Product\Category;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\Project\ProjectUpdateTdk;
|
|
|
|
use App\Models\Template\BTemplate;
|
|
|
|
use App\Models\Template\Setting;
|
|
...
|
...
|
@@ -121,6 +122,17 @@ class UpdateController extends BaseController |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//如果自己创建了6.0产品关联了分类,也不能再重采分类
|
|
|
|
$product_v6_list = Product::where('project_id', $this->param['project_id'])->where('is_upgrade', 0)->get();
|
|
|
|
if ($product_v6_list->count() > 0) {
|
|
|
|
foreach ($product_v6_list as $product_v6) {
|
|
|
|
if ($product_v6->category_id) {
|
|
|
|
$product_cate_type = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//新闻分类重采之前,判断新闻分类是否开启了可视化
|
|
|
|
$category_news_list = NewsCategory::where('project_id', $this->param['project_id'])->get();
|
|
|
|
if ($category_news_list->count() > 0) {
|
...
|
...
|
|