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
447f0a75
authored
Feb 28, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复邮箱加密显示的问题
parent
a9cbf937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app/Http/Transformers/SupplierContactTransformer.php
app/Http/Transformers/SupplierContactTransformer.php
View file @
447f0a75
...
...
@@ -19,8 +19,11 @@ class SupplierContactTransformer
$emailTemp
=
explode
(
'@'
,
$item
[
'supplier_email'
])[
0
];
$replace
=
str_pad
(
'*'
,
strlen
(
$emailTemp
),
'*'
);
$emailTemp
=
str_replace
(
$emailTemp
,
$replace
,
$emailTemp
);
$item
[
'supplier_email'
]
=
$emailTemp
.
'@'
.
isset
(
explode
(
'@'
,
$item
[
'supplier_email'
])[
1
])
?
explode
(
'@'
,
$item
[
'supplier_email'
])[
1
]
:
'***'
;
if
(
count
(
explode
(
'@'
,
$item
[
'supplier_email'
]))
>
1
)
{
$item
[
'supplier_email'
]
=
$emailTemp
.
'@'
.
explode
(
'@'
,
$item
[
'supplier_email'
])[
1
];
}
else
{
$item
[
'supplier_email'
]
=
$emailTemp
;
}
}
if
(
!
empty
(
$item
[
'supplier_mobile'
]))
{
$temp
=
substr
(
$item
[
'supplier_mobile'
],
3
,
4
);
...
...
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