合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !1414
正在显示
3 个修改的文件
包含
24 行增加
和
4 行删除
| @@ -227,7 +227,7 @@ class WeekProject extends Command | @@ -227,7 +227,7 @@ class WeekProject extends Command | ||
| 227 | if(!empty($data['daily_average_num'])){ | 227 | if(!empty($data['daily_average_num'])){ |
| 228 | $content2 .= '本周日均访客量:'.$data['daily_average_num'].'+。'; | 228 | $content2 .= '本周日均访客量:'.$data['daily_average_num'].'+。'; |
| 229 | } | 229 | } |
| 230 | - $content2 .= '全球搜建议用户持续分析、选择、添加企业、产品、服务等相关关键词进行优化和监控,以覆盖更多相关排名和流量;'; | 230 | + $content2 .= PHP_EOL.'全球搜建议用户持续分析、选择、添加企业、产品、服务等相关关键词进行优化和监控,以覆盖更多相关排名和流量;'; |
| 231 | } | 231 | } |
| 232 | if(!empty($content2)){ | 232 | if(!empty($content2)){ |
| 233 | $arr[] = $content2; | 233 | $arr[] = $content2; |
| @@ -252,7 +252,7 @@ class WeekProject extends Command | @@ -252,7 +252,7 @@ class WeekProject extends Command | ||
| 252 | $content3 .= '新闻:'.$data['week_news_num'].'条。'; | 252 | $content3 .= '新闻:'.$data['week_news_num'].'条。'; |
| 253 | } | 253 | } |
| 254 | } | 254 | } |
| 255 | - $content3 .= '全球搜建议用户保持网站内容的持续更新与完善,可参考谷歌关于创建实用、可靠、以用户为中心的内容的相关建议:https://developers.google.com/search/docs/fundamentals/creating-helpful-content?hl=zh-cn;'; | 255 | + $content3 .= PHP_EOL.'全球搜建议用户保持网站内容的持续更新与完善,可参考谷歌关于创建实用、可靠、以用户为中心的内容的相关建议:https://developers.google.com/search/docs/fundamentals/creating-helpful-content?hl=zh-cn;'; |
| 256 | } | 256 | } |
| 257 | if(!empty($content3)){ | 257 | if(!empty($content3)){ |
| 258 | $arr[] = $content3; | 258 | $arr[] = $content3; |
| @@ -271,7 +271,7 @@ class WeekProject extends Command | @@ -271,7 +271,7 @@ class WeekProject extends Command | ||
| 271 | $content4 .= '聚合页小语种站页面'.$data['aggregation_minor_update_num'].'次。'; | 271 | $content4 .= '聚合页小语种站页面'.$data['aggregation_minor_update_num'].'次。'; |
| 272 | } | 272 | } |
| 273 | if(!empty($content4)){ | 273 | if(!empty($content4)){ |
| 274 | - $content4 = '本周主要优化工作包括:TDK、H标签、Img标签等优化设置排查与进一步完善,Sitemap更新与网页收录提交,外链新增与排查。'.$content4; | 274 | + $content4 = PHP_EOL.'本周主要优化工作包括:TDK、H标签、Img标签等优化设置排查与进一步完善,Sitemap更新与网页收录提交,外链新增与排查。'.$content4; |
| 275 | } | 275 | } |
| 276 | if(!empty($content4)){ | 276 | if(!empty($content4)){ |
| 277 | $arr[] = $content4; | 277 | $arr[] = $content4; |
| @@ -280,7 +280,7 @@ class WeekProject extends Command | @@ -280,7 +280,7 @@ class WeekProject extends Command | ||
| 280 | return true; | 280 | return true; |
| 281 | } | 281 | } |
| 282 | foreach ($arr as $key => $val){ | 282 | foreach ($arr as $key => $val){ |
| 283 | - $content .= ($key+1).','.$val.PHP_EOL; | 283 | + $content .= ($key+1).','.$val.PHP_EOL.PHP_EOL; |
| 284 | } | 284 | } |
| 285 | $timestamp = strtotime('tomorrow 9:00 AM'); | 285 | $timestamp = strtotime('tomorrow 9:00 AM'); |
| 286 | $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp); | 286 | $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp); |
| @@ -29,6 +29,7 @@ class KeywordUrlController extends BaseController | @@ -29,6 +29,7 @@ class KeywordUrlController extends BaseController | ||
| 29 | * @author :lyh | 29 | * @author :lyh |
| 30 | * @method :post | 30 | * @method :post |
| 31 | * @time :2025/3/12 17:01 | 31 | * @time :2025/3/12 17:01 |
| 32 | + * @param :keyword->关键字 | ||
| 32 | */ | 33 | */ |
| 33 | public function lists(KeywordUrl $keywordUrl){ | 34 | public function lists(KeywordUrl $keywordUrl){ |
| 34 | if(isset($this->map['keyword']) && !empty($this->map['keyword'])){ | 35 | if(isset($this->map['keyword']) && !empty($this->map['keyword'])){ |
| @@ -40,11 +41,29 @@ class KeywordUrlController extends BaseController | @@ -40,11 +41,29 @@ class KeywordUrlController extends BaseController | ||
| 40 | } | 41 | } |
| 41 | 42 | ||
| 42 | /** | 43 | /** |
| 44 | + * @remark :获取数据详情 | ||
| 45 | + * @name :info | ||
| 46 | + * @author :lyh | ||
| 47 | + * @method :post | ||
| 48 | + * @time :2025/3/12 17:25 | ||
| 49 | + */ | ||
| 50 | + public function info(KeywordUrl $keywordUrl){ | ||
| 51 | + $this->request->validate([ | ||
| 52 | + 'id'=>['required'], | ||
| 53 | + ],[ | ||
| 54 | + 'id.required' => 'id不能为空', | ||
| 55 | + ]); | ||
| 56 | + $lists = $keywordUrl->read(['id'=>$this->param['id']]); | ||
| 57 | + $this->response('success',Code::SUCCESS,$lists); | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + /** | ||
| 43 | * @remark :保存数据 | 61 | * @remark :保存数据 |
| 44 | * @name :save | 62 | * @name :save |
| 45 | * @author :lyh | 63 | * @author :lyh |
| 46 | * @method :post | 64 | * @method :post |
| 47 | * @time :2025/3/12 17:02 | 65 | * @time :2025/3/12 17:02 |
| 66 | + * @param :keyword->关键词; url->对应路由 | ||
| 48 | */ | 67 | */ |
| 49 | public function save(KeywordUrlLogic $keywordUrlLogic){ | 68 | public function save(KeywordUrlLogic $keywordUrlLogic){ |
| 50 | $this->request->validate([ | 69 | $this->request->validate([ |
| @@ -677,6 +677,7 @@ Route::middleware(['bloginauth'])->group(function () { | @@ -677,6 +677,7 @@ Route::middleware(['bloginauth'])->group(function () { | ||
| 677 | //seo白帽 关键词设置 | 677 | //seo白帽 关键词设置 |
| 678 | Route::prefix('keyword_url')->group(function () { | 678 | Route::prefix('keyword_url')->group(function () { |
| 679 | Route::any('/', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'lists'])->name('keyword_url_lists'); | 679 | Route::any('/', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'lists'])->name('keyword_url_lists'); |
| 680 | + Route::any('/info', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'info'])->name('keyword_url_info'); | ||
| 680 | Route::any('/save', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'save'])->name('keyword_url_save'); | 681 | Route::any('/save', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'save'])->name('keyword_url_save'); |
| 681 | Route::any('/del', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'del'])->name('keyword_url_del'); | 682 | Route::any('/del', [\App\Http\Controllers\Bside\Product\KeywordUrlController::class, 'del'])->name('keyword_url_del'); |
| 682 | }); | 683 | }); |
-
请 注册 或 登录 后发表评论