作者 lyh

gx

... ... @@ -34,4 +34,21 @@ class EnterpriseProductController extends BaseController
$data = $enterpriseProduct->lists($this->map,$this->page,$this->row);
$this->response('success',Code::SUCCESS,$data);
}
/**
* @remark :删除产品库产品
* @name :del
* @author :lyh
* @method :post
* @time :2025/3/27 9:59
*/
public function del(EnterpriseProduct $enterpriseProduct){
$this->request->validate([
'ids'=>['required'],
],[
'ids.required' => 'id不能为空',
]);
$result = $enterpriseProduct->del(['id'=>['in',$this->param['ids']]]);
$this->response('success',Code::SUCCESS,$result);
}
}
... ...
... ... @@ -48,7 +48,8 @@ class GoogleKeywordInsightService
$err = curl_error($curl);
curl_close($curl);
if ($err) {
return "cURL Error #:" . $err;
errorLog("关键词扩展cURL Error #:", $url, $err);
return false;
} else {
return json_decode($response,true);
}
... ...
... ... @@ -704,6 +704,7 @@ Route::middleware(['bloginauth'])->group(function () {
//企业产品库
Route::prefix('enterprise_product')->group(function () {
Route::any('/getEnterProduct', [\App\Http\Controllers\Bside\SeoSetting\EnterpriseProductController::class, 'getEnterProduct'])->name('enterprise_product_getEnterProduct');
Route::any('/del', [\App\Http\Controllers\Bside\SeoSetting\EnterpriseProductController::class, 'del'])->name('enterprise_product_del');
});
});
//无需登录验证的路由组
... ...