Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
dfa5297b
authored
Nov 27, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
还是修复各种状态问题
parent
eb7fc761
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
.env
app/Http/Services/MessageService.php
app/Http/Services/SyncSupplierService.php
config/website.php
.env
View file @
dfa5297b
...
...
@@ -148,3 +148,5 @@ MENU_URL=http://data.liexin.net/api/config/
FOOTSTONE_URL=http://footstone.liexindev.net
#标签系统的地址
TAG_URL=http://192.168.1.18:32581
SKIP_SEND_EMAIL=true
app/Http/Services/MessageService.php
View file @
dfa5297b
...
...
@@ -11,6 +11,9 @@ class MessageService
{
public
function
sendMessage
(
$keyword
,
$data
,
$to_user
=
''
,
$cnUncode
=
false
)
{
if
(
config
(
'website.SkipSendEmail'
))
{
return
true
;
}
// 推送给内部人员
if
(
$cnUncode
)
{
if
(
isset
(
$data
[
'data'
]))
{
...
...
app/Http/Services/SyncSupplierService.php
View file @
dfa5297b
...
...
@@ -253,7 +253,8 @@ class SyncSupplierService
$preStatus
=
null
;
$redis
=
new
RedisModel
();
if
(
$isEntity
)
{
if
(
!
$redis
->
hget
(
'supplier_status_before_disable'
,
$supplierId
))
{
$cachedStatus
=
$redis
->
hget
(
'supplier_status_before_disable'
,
$supplierId
);
if
(
!
$cachedStatus
&&
$cachedStatus
!==
"0"
)
{
$redis
->
hset
(
'supplier_status_before_disable'
,
$supplierId
,
$status
);
}
}
else
{
...
...
@@ -269,7 +270,6 @@ class SyncSupplierService
if
(
!
$isEntity
&&
$preStatus
==
SupplierChannelModel
::
STATUS_DISABLE
)
{
$preStatus
=
SupplierChannelModel
::
STATUS_IN_REVIEW
;
}
//修改供应商的状态
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'is_entity'
=>
$isEntityResult
,
...
...
config/website.php
View file @
dfa5297b
...
...
@@ -41,5 +41,5 @@ return [
],
'TagUrl'
=>
env
(
'TAG_URL'
),
'CloudUrl'
=>
env
(
'CLOUD_URL'
),
'SkipSendEmail'
=>
env
(
'skip_send_email'
),
];
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