This commit is contained in:
toom1996
2025-07-30 19:00:32 +08:00
parent c8ca10660d
commit 1abf5746c9

View File

@ -1,6 +1,6 @@
<?php
$platforms = call_user_func(function () {
return json_encode(\App\Model\AppWebsiteConfig::query()->where('is_delete', 0)->get()->groupBy('id')->toArray());
return json_encode(\App\Model\AppWebsiteConfig::query()->select(['app_domain', 'id'])->where('is_delete', 0)->get()->groupBy('id')->toArray());
});
?>
<!DOCTYPE html>
@ -131,7 +131,6 @@ $platforms = call_user_func(function () {
field: "title",
templet: function(d){
let domain = platform[d.platform][0]['app_domain']
console.log(domain)
return `<a href='//${domain}/news/${d.id}' target="_blank">` + d.title + '</a>';
},
}, {