Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eaaaee50
authored
Dec 29, 2025
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
7e5d9965
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
app/Http/Controllers/MessageController.php
app/Logic/SystemNoticeLogic.php
config/database.php
config/msgconfig.php
config/website.php
app/Http/Controllers/MessageController.php
View file @
eaaaee50
...
...
@@ -122,6 +122,7 @@ class MessageController extends Controller
'options'
=>
'[]'
,
'referer'
=>
$referer
,
];
return
view
(
$viewid
,
$data
);
}
...
...
@@ -136,7 +137,6 @@ class MessageController extends Controller
if
(
$menuconfig
&&
!
(
$menus
=
json_decode
(
$menuconfig
->
config_data
)))
$menus
=
[];
$referer
=
$this
->
get_referer
(
$request
);
$data
=
[
'header'
=>
$request
->
user
->
header
,
...
...
@@ -643,7 +643,7 @@ class MessageController extends Controller
//区分环境
$current_domain
=
$_SERVER
[
'HTTP_HOST'
];
if
(
$current_domain
===
Config
(
'msgconfig.domain_local'
))
if
(
$current_domain
===
Config
(
'msgconfig.domain_local'
)
||
$current_domain
===
'message.liexinlocal.com'
)
{
$bid
=
Config
(
'msgconfig.perm_bid_local'
);
$perm_url
=
Config
(
'msgconfig.perm_domain_local'
);
...
...
@@ -672,7 +672,7 @@ class MessageController extends Controller
{
$current_domain
=
$_SERVER
[
'HTTP_HOST'
];
if
(
$current_domain
===
Config
(
'msgconfig.domain_local'
)
||
$current_domain
===
'message.liexindev.net'
)
if
(
$current_domain
===
Config
(
'msgconfig.domain_local'
)
||
$current_domain
===
'message.liexindev.net'
||
$current_domain
===
'message.liexinlocal.com'
)
{
return
Config
(
'msgconfig.config_id_local'
);
}
...
...
app/Logic/SystemNoticeLogic.php
View file @
eaaaee50
...
...
@@ -396,6 +396,7 @@ class SystemNoticeLogic
public
function
businessNoticeList
(
$where
)
{
$obj
=
(
new
BusinessNoticeModel
())
->
getWhereObj
(
$where
);
$returnData
=
$obj
->
paginate
(
$where
[
'limit'
])
->
toArray
();
if
(
empty
(
$returnData
[
'data'
])){
...
...
@@ -411,7 +412,6 @@ class SystemNoticeLogic
$value
[
'top_status_cn'
]
=
array_get
(
BusinessNoticeModel
::
$topCn
,
$value
[
'top_status'
],
''
);
$value
[
'source_cn'
]
=
array_get
(
BusinessNoticeModel
::
$sourceCn
,
$value
[
'source'
],
''
);
}
return
$returnData
;
}
...
...
config/database.php
View file @
eaaaee50
...
...
@@ -137,6 +137,7 @@ return [
],
],
/*
...
...
config/msgconfig.php
View file @
eaaaee50
...
...
@@ -9,7 +9,7 @@
return
[
//域名
'domain_local'
=>
'message.liexin.net'
,
'domain_local'
=>
env
(
"DOMAIN_LOCAL"
,
"message.liexin.net"
)
,
'domain_sz'
=>
'szmessage.ichunt.net'
,
'domain_release'
=>
'message.ichunt.net'
,
...
...
config/website.php
View file @
eaaaee50
<?php
return
[
'admin'
=>
[
'yyc@ichunt.com'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment