正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -28,6 +28,7 @@ use App\Models\RankData\Speed; | @@ -28,6 +28,7 @@ use App\Models\RankData\Speed; | ||
| 28 | use App\Models\RankData\Speed as GoogleSpeedModel; | 28 | use App\Models\RankData\Speed as GoogleSpeedModel; |
| 29 | use App\Utils\HttpUtils; | 29 | use App\Utils\HttpUtils; |
| 30 | use GuzzleHttp\Exception\GuzzleException; | 30 | use GuzzleHttp\Exception\GuzzleException; |
| 31 | +use Illuminate\Support\Collection; | ||
| 31 | use Illuminate\Support\Facades\Cache; | 32 | use Illuminate\Support\Facades\Cache; |
| 32 | use Illuminate\Support\Facades\Log; | 33 | use Illuminate\Support\Facades\Log; |
| 33 | use Illuminate\Support\Str; | 34 | use Illuminate\Support\Str; |
| @@ -110,6 +111,7 @@ class RankDataLogic extends BaseLogic | @@ -110,6 +111,7 @@ class RankDataLogic extends BaseLogic | ||
| 110 | 111 | ||
| 111 | //外链引荐域名 | 112 | //外链引荐域名 |
| 112 | $recomm_domain = $recomm_domain ? $recomm_domain->toArray() : []; | 113 | $recomm_domain = $recomm_domain ? $recomm_domain->toArray() : []; |
| 114 | + $recomm_domain['data'] = Collection::make($recomm_domain['data'])->sortBy('backlinks_num')->all(); | ||
| 113 | $data['external_links_domain_chat'] = [ | 115 | $data['external_links_domain_chat'] = [ |
| 114 | 'labels' => array_map(function ($item) { | 116 | 'labels' => array_map(function ($item) { |
| 115 | return Str::substrReplace($item, '***', 2, 3); | 117 | return Str::substrReplace($item, '***', 2, 3); |
-
请 注册 或 登录 后发表评论