|
...
|
...
|
@@ -12,6 +12,7 @@ namespace App\Http\Controllers\Bside\BCom; |
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Helper\Arr;
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Jobs\UpdatePageJob;
|
|
|
|
use App\Models\Com\Notify;
|
|
|
|
use App\Models\Com\UpdateLog;
|
|
|
|
use App\Models\Com\UpdateNotify;
|
|
...
|
...
|
@@ -107,7 +108,7 @@ class CNoticeController extends BaseController |
|
|
|
}else{
|
|
|
|
//其他服务器:请求对应C端接口
|
|
|
|
$c_url = $this->user['domain'].'api/update_page/';
|
|
|
|
$param = [
|
|
|
|
$c_param = [
|
|
|
|
'project_id' => $this->user['project_id'],
|
|
|
|
'type' => $type,
|
|
|
|
'route' => $route,
|
|
...
|
...
|
@@ -115,10 +116,10 @@ class CNoticeController extends BaseController |
|
|
|
'language'=> $language,
|
|
|
|
'is_sitemap' => $is_sitemap
|
|
|
|
];
|
|
|
|
http_post($c_url, json_encode($param));
|
|
|
|
// $shell = 'curl -X POST ' . escapeshellarg($c_url) . ' -H "Content-Type: application/json"' .
|
|
|
|
// ' -d ' . escapeshellarg(json_encode($param)) . ' > /dev/null 2>&1 &';
|
|
|
|
// shell_exec($shell);
|
|
|
|
// http_post($c_url, json_encode($c_param));
|
|
|
|
|
|
|
|
//2024-10-11:改为异步请求
|
|
|
|
UpdatePageJob::dispatch(['c_url'=>$c_url,'c_params'=>json_encode($c_param)]);
|
|
|
|
}
|
|
|
|
$this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!');
|
|
|
|
}
|
...
|
...
|
|