作者 lyh

gx

... ... @@ -93,7 +93,7 @@ if(!function_exists('http_get')){
curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false);
$access_txt = curl_exec($ch1);
curl_close($ch1);
\Illuminate\Support\Facades\Log::info('info----'.$access_txt);
L::info('info----'.$access_txt);
return json_decode($access_txt, true);
}
}
... ...
... ... @@ -3,14 +3,12 @@
namespace App\Http\Controllers\Bside\News;
use App\Enums\Common\Code;
use App\Helper\Common;
use App\Http\Controllers\Bside\BaseController;
use App\Http\Logic\Bside\News\NewsCategoryLogic;
use App\Http\Logic\Bside\News\NewsLogic;
use App\Http\Requests\Bside\News\NewsRequest;
use App\Models\News\News as NewsModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
/**
* @name:新闻管理
... ... @@ -72,8 +70,8 @@ class NewsController extends BaseController
$newsRequest->validated();
$newsLogic->news_add();
//TODO::通知网站更新
$this->projectUrlNotify($this->model);
$this->response('success');
$res = $this->projectUrlNotify($this->model);
$this->response('success',Code::SUCCESS,$res);
}
/**
... ... @@ -91,7 +89,7 @@ class NewsController extends BaseController
$newsLogic->news_edit();
//TODO::通知网站更新
$res = $this->projectUrlNotify($this->model);
$this->response('success');
$this->response('success',Code::SUCCESS,$res);
}
/**
... ...