|
...
|
...
|
@@ -11,6 +11,9 @@ namespace App\Http\Logic\Aside\Project; |
|
|
|
|
|
|
|
use App\Http\Logic\Aside\BaseLogic;
|
|
|
|
use App\Models\Project\EnterpriseProduct;
|
|
|
|
use App\Models\SeoSetting\LinkData;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :企业产品库
|
|
...
|
...
|
@@ -43,4 +46,29 @@ class EnterpriseProductLogic extends BaseLogic |
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :批量保存外链数据
|
|
|
|
* @name :saveLinkData
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/4/2 9:08
|
|
|
|
*/
|
|
|
|
public function saveLinkData(){
|
|
|
|
ProjectServer::useProject($this->param['project_id']);
|
|
|
|
$linkModel = new LinkData();
|
|
|
|
$data = [];
|
|
|
|
foreach ($this->param['data'] as $v){
|
|
|
|
$data[] = [
|
|
|
|
'url'=>$v['url'],
|
|
|
|
'da_values'=>$v['da_values'],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
if(!empty($data)){
|
|
|
|
$linkModel->insertAll($data);
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|