作者 lyh

gx

<?php
/**
* @remark :
* @name :KeywordController.php
* @author :lyh
* @method :post
* @time :2024/2/26 9:23
*/
namespace App\Http\Controllers\Aside\Com;
use App\Http\Controllers\Aside\BaseController;
class KeywordController extends BaseController
{
/**
* @remark :创建关键字任务池子
* @name :saveKeyword
* @author :lyh
* @method :post
* @time :2024/2/26 9:24
*/
public function savePromotionKeyword(){
$this->request->validate([
'data' => 'required|array',
'project_id'=>'required',
], [
'data.required' => '自定义询盘数据不为空',
'data.array' => '必须为数组',
'project_id.required' => '项目唯一标识不为空',
]);
foreach ($this->param['data'] as $v){
$param['keyword'] = $v;
$param['project_id'] = $this->param['project_id'];
}
}
}
... ...
... ... @@ -27,7 +27,6 @@ class CopyImageFileJob implements ShouldQueue
*/
public function __construct($data)
{
$this->connection = 'copy_image_file';
$this->param = $data;
}
... ...
... ... @@ -37,7 +37,6 @@ class CopyProjectJob implements ShouldQueue
*/
public function __construct($data)
{
$this->connection = 'copy_project';
$this->param = $data;
}
... ...
<?php
/**
* @remark :
* @name :PromotionKeyword.php
* @author :lyh
* @method :post
* @time :2024/2/26 9:33
*/
namespace App\Models\Com;
use App\Models\Base;
class PromotionKeyword extends Base
{
protected $table = 'gl_promotion_keyword';
}
... ...