|
@@ -3466,7 +3466,7 @@ class NewsService implements NewsServiceInterface
|
|
|
*/
|
|
*/
|
|
|
public function checkWebsiteRoute(array $data): array
|
|
public function checkWebsiteRoute(array $data): array
|
|
|
{
|
|
{
|
|
|
- // 测试001
|
|
|
|
|
|
|
+ // 测试0011111
|
|
|
$web = Website::where('id', $data['website_id'])->first(['id', 'website_name', 'status']);
|
|
$web = Website::where('id', $data['website_id'])->first(['id', 'website_name', 'status']);
|
|
|
if (empty($web)) {
|
|
if (empty($web)) {
|
|
|
return Result::error("该网站不存在", 0);
|
|
return Result::error("该网站不存在", 0);
|
|
@@ -3564,7 +3564,7 @@ class NewsService implements NewsServiceInterface
|
|
|
// 企业
|
|
// 企业
|
|
|
// `status` int DEFAULT '1' COMMENT '审核状态状态:0:未审核;1:已审核;2:已拒绝;',
|
|
// `status` int DEFAULT '1' COMMENT '审核状态状态:0:未审核;1:已审核;2:已拒绝;',
|
|
|
$article = Company::
|
|
$article = Company::
|
|
|
- // where('website_id', $data['website_id'])
|
|
|
|
|
|
|
+ // where('website_id', $data['website_id'])
|
|
|
// ->
|
|
// ->
|
|
|
where('status', 1)
|
|
where('status', 1)
|
|
|
->where('id', $data['id'])
|
|
->where('id', $data['id'])
|