作者 lyh

变更数据

... ... @@ -24,8 +24,8 @@ use Illuminate\Http\Request;
*/
class GeoController extends BaseController
{
public function __construct(){
parent::__construct();
public function __construct(Request $request){
parent::__construct($request);
$this->logic = new GeoLogic();
}
... ...
... ... @@ -21,13 +21,13 @@ use App\Http\Controllers\Aside\BaseController;
class GeoWritingTaskController extends BaseController
{
/**
* @remark :文章任务列表
* @remark :保存geoAi文章数据
* @name :lists
* @author :lyh
* @method :post
* @time :2025/10/25 10:41
*/
public function lists(){
public function saveWritingTask(){
}
}
... ...
... ... @@ -35,6 +35,9 @@ class WebSettingReceivingLogic extends BaseLogic
*/
public function setting_receiving_save(){
$data = [];
if(!isset($this->param['data']) || empty($this->param['data'])){
$this->fail('参数错误,请联系管理员');
}
foreach ($this->param['data'] as $v){
if($v['type'] == 1){
// 使用正则表达式匹配中国大陆手机号
... ...
<?php
/**
* @remark :
* @name :GeoWritingsTaskRequest.php
* @author :lyh
* @method :post
* @time :2025/10/25 14:21
*/
namespace App\Http\Requests\Aside\Geo;
use Illuminate\Foundation\Http\FormRequest;
class GeoWritingsTaskRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'project_id' => 'required',
'company' => 'required|string',
'brand' => 'required|string',
'keyword' => 'required|string',
'prefix' => 'required|string',
'suffix' => 'required|string',
'event_title' => 'required|string',
'event_content' => 'required|string',
'title' => 'required|string',
'description' => 'required|string',
'footer' => 'required|string',
'img' => 'required|string',
'ai_model' => 'required|string',
];
}
}
... ...
... ... @@ -26,7 +26,7 @@ class NewsRequest extends FormRequest
return [
'name'=>'required|max:200',
'url'=>'required',
// 'seo_title' => 'max:70',
'seo_title' => 'max:70',
'seo_keywords' => 'max:300',
'seo_description' => 'max:200',
];
... ... @@ -38,7 +38,7 @@ class NewsRequest extends FormRequest
'name.required'=>'请填写名称',
'name.max'=>'名称超过最长长度200',
'url.required'=>'链接不能为空',
// 'seo_title.max' => 'SEO标题不能超过70个字符',
'seo_title.max' => 'SEO标题不能超过70个字符',
'seo_keywords.max' => 'SEO关键词不能超过300个字符',
'seo_description.max' => 'SEO描述不能超过200个字符',
];
... ...