作者 赵彬吉
... ... @@ -126,14 +126,18 @@ class NoticeController extends BaseController
return $this->error('other_domain参数必须为数组');
}
$origin_array = parse_url($origin_domain);
$origin_domain = $origin_array['host'] ?? '';
if(strpos($origin_domain,'http') !== false){
$origin_array = parse_url($origin_domain);
$origin_domain = $origin_array['host'] ?? '';
}
if (empty($origin_domain)) {
return $this->error('origin_domain参数不能为空');
}
$target_array = parse_url($target_domain);
$target_domain = $target_array['host'] ?? '';
if(strpos($target_domain,'http') !== false){
$target_array = parse_url($target_domain);
$target_domain = $target_array['host'] ?? '';
}
if (empty($target_domain)) {
return $this->error('target_domain参数不能为空');
}
... ...
... ... @@ -406,7 +406,7 @@ class ComController extends BaseController
* @method :post
* @time :2024/10/28 11:51
*/
public function month_count(){
public function month_counts(){
Artisan::call('month_project '.$this->user['project_id']);
$this->response('重新刷新中,请稍后刷新查询');
}
... ...
... ... @@ -21,6 +21,8 @@ Route::middleware(['bloginauth'])->group(function () {
Route::any('/getLink', [\App\Http\Controllers\Bside\BCom\ComController::class, 'getLink'])->name('getLink');
Route::any('/getMobileProject', [\App\Http\Controllers\Bside\BCom\ComController::class, 'getMobileProject'])->name('getMobileProject');
Route::any('/getNoticeInfo', [\App\Http\Controllers\Bside\BCom\ComController::class, 'getNoticeInfo'])->name('getNoticeInfo');
//重新校队流量统计
Route::any('/month_counts', [\App\Http\Controllers\Bside\BCom\ComController::class, 'month_counts'])->name('month_counts');
//黑格数据
Route::prefix('suppliers')->group(function () {
Route::any('/recommendedPurchaser', [\App\Http\Controllers\Bside\Suppliers\SuppliersController::class, 'recommendedPurchaser'])->name('suppliers_recommendedPurchaser');
... ...