Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server
正在显示
3 个修改的文件
包含
7 行增加
和
5 行删除
| @@ -23,13 +23,15 @@ class AutoPullController extends BaseController | @@ -23,13 +23,15 @@ class AutoPullController extends BaseController | ||
| 23 | $manage_model = new Manage(); | 23 | $manage_model = new Manage(); |
| 24 | foreach ($lists['list'] as $k => $v) { | 24 | foreach ($lists['list'] as $k => $v) { |
| 25 | $lists['list'][$k]['operator_name'] = $manage_model->getName($v['user_id']); | 25 | $lists['list'][$k]['operator_name'] = $manage_model->getName($v['user_id']); |
| 26 | - $lists['list'][$k]['server_name'] = AutoPullNotify::serversMap()[$v['server_id']]; | 26 | + $lists['list'][$k]['server_name'] = AutoPullNotify::serversMap()[$v['server_id']] ?? ''; |
| 27 | 27 | ||
| 28 | $process = Arr::s2a($v['process']); | 28 | $process = Arr::s2a($v['process']); |
| 29 | $process_name = []; | 29 | $process_name = []; |
| 30 | if ($process) { | 30 | if ($process) { |
| 31 | foreach ($process as $kp => $vp) { | 31 | foreach ($process as $kp => $vp) { |
| 32 | - $process_name[$kp] = AutoPullNotify::processMap()[$vp]; | 32 | + if(isset(AutoPullNotify::processMap()[$vp])){ |
| 33 | + $process_name[$kp] = AutoPullNotify::processMap()[$vp]; | ||
| 34 | + } | ||
| 33 | } | 35 | } |
| 34 | } | 36 | } |
| 35 | 37 |
| @@ -58,7 +58,7 @@ class DomainSettingLogic extends BaseLogic | @@ -58,7 +58,7 @@ class DomainSettingLogic extends BaseLogic | ||
| 58 | } | 58 | } |
| 59 | } else { | 59 | } else { |
| 60 | //未绑定主域名,分配域名解析 | 60 | //未绑定主域名,分配域名解析 |
| 61 | - $record = Servers::where('init_domain', 'like', 'seo%')->where('being_number', '<', 10)->orderBy('being_number', 'desc')->orderBy('id', 'asc')->value('init_domain') ?? ''; | 61 | + $record = Servers::where('init_domain', 'like', 'seo%')->whereRaw('being_number < ip_total')->orderBy('being_number', 'desc')->orderBy('id', 'asc')->value('init_domain') ?? ''; |
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 |
| @@ -32,11 +32,11 @@ class AutoPullNotify extends Base | @@ -32,11 +32,11 @@ class AutoPullNotify extends Base | ||
| 32 | return [ | 32 | return [ |
| 33 | 'php artisan pack_site_dir' => '打包站点静态页面', | 33 | 'php artisan pack_site_dir' => '打包站点静态页面', |
| 34 | 'php artisan handle_html' => '拉取页面zip文件并解压', | 34 | 'php artisan handle_html' => '拉取页面zip文件并解压', |
| 35 | - 'php artisan create_update_page_route' => '创建主站路由', | 35 | +// 'php artisan create_update_page_route' => '创建主站路由', |
| 36 | 'php artisan create_update_page_master' => '生成主站页面', | 36 | 'php artisan create_update_page_master' => '生成主站页面', |
| 37 | 'php artisan create_update_page_minor' => '生成小语种页面', | 37 | 'php artisan create_update_page_minor' => '生成小语种页面', |
| 38 | 'php artisan create_update_page_sitemap' => '生成主站sitemap,robots', | 38 | 'php artisan create_update_page_sitemap' => '生成主站sitemap,robots', |
| 39 | - 'php artisan create_update_amp_route' => '创建amp站路由', | 39 | +// 'php artisan create_update_amp_route' => '创建amp站路由', |
| 40 | 'php artisan create_update_page_amp' => '生成amp站页面', | 40 | 'php artisan create_update_page_amp' => '生成amp站页面', |
| 41 | 'php artisan create_update_amp_sitemap' => '生成amp站sitemap,robots', | 41 | 'php artisan create_update_amp_sitemap' => '生成amp站sitemap,robots', |
| 42 | ]; | 42 | ]; |
-
请 注册 或 登录 后发表评论