update
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$platforms = call_user_func(function () {
|
$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>
|
<!DOCTYPE html>
|
||||||
@ -131,7 +131,6 @@ $platforms = call_user_func(function () {
|
|||||||
field: "title",
|
field: "title",
|
||||||
templet: function(d){
|
templet: function(d){
|
||||||
let domain = platform[d.platform][0]['app_domain']
|
let domain = platform[d.platform][0]['app_domain']
|
||||||
console.log(domain)
|
|
||||||
return `<a href='//${domain}/news/${d.id}' target="_blank">` + d.title + '</a>';
|
return `<a href='//${domain}/news/${d.id}' target="_blank">` + d.title + '</a>';
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
|
Reference in New Issue
Block a user