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
d954786f
authored
Apr 27, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fiax
parent
b89f6e9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
app/Http/Services/LogService.php
app/Http/Services/SupplierSkuAuditRulerService.php
app/Http/Services/LogService.php
View file @
d954786f
...
...
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\DB;
class
LogService
{
//添加日志
public
function
AddLog
(
$supplierId
,
$type
,
$action
,
$content
,
$remark
=
''
)
{
...
...
@@ -108,12 +109,15 @@ class LogService
return
$file
[
'file_name'
];
},
$newFiles
);
//对比文件名变化
$diffKeys
=
array_keys
(
array_diff
(
$newFileNames
,
$oldFileNames
));
$diffKeys
=
array_keys
(
array_diff
_assoc
(
$newFileNames
,
$oldFileNames
));
$content
=
''
;
foreach
(
$diffKeys
as
$key
)
{
$oldFileName
=
array_get
(
$oldFileNames
,
$key
);
$oldFileName
=
$oldFileName
==
'选择文件上传'
?
' '
:
$oldFileName
;
$newFileName
=
array_get
(
$newFileNames
,
$key
);
if
(
$newFileName
==
"选择文件上传"
)
{
continue
;
}
$content
.=
array_get
(
config
(
'fixed.FileNameMapping'
),
$key
)
.
'由 ['
.
$oldFileName
.
'] 修改为 ['
.
$newFileName
.
']; '
;
}
...
...
@@ -123,8 +127,8 @@ class LogService
$oldFee
=
json_decode
(
$oldSupplier
[
'extra_fee'
],
true
);
$newFee
=
json_decode
(
$newSupplier
[
'extra_fee'
],
true
);
$content
=
"采购附加费由 [商品总价不满"
.
$oldFee
[
'cn'
][
'max'
]
.
"元,收取"
.
$oldFee
[
'cn'
][
'price'
]
.
"元;商品总价不满"
.
$oldFee
[
'
cn'
][
'max'
]
.
"美金,收取"
.
$oldFee
[
'cn
'
][
'price'
]
.
"元;] 修改为 [商品总价不满"
.
$newFee
[
'
hk'
][
'max'
]
.
"元,收取"
.
$newFee
[
'hk
'
][
'price'
]
.
"元;商品总价不满"
.
$oldFee
[
'
hk'
][
'max'
]
.
"美金,收取"
.
$oldFee
[
'hk
'
][
'price'
]
.
"元;] 修改为 [商品总价不满"
.
$newFee
[
'
cn'
][
'max'
]
.
"元,收取"
.
$newFee
[
'cn
'
][
'price'
]
.
"元;商品总价不满"
.
$newFee
[
'hk'
][
'max'
]
.
"美金,收取"
.
$newFee
[
'hk'
][
'price'
]
.
"元;]"
;
$result
[]
=
$content
;
}
...
...
app/Http/Services/SupplierSkuAuditRulerService.php
View file @
d954786f
...
...
@@ -36,6 +36,8 @@ class SupplierSkuAuditRulerService
public
function
getSkuAuditRuler
(
$ruler
)
{
if
(
empty
(
$ruler
))
{
$defaultRuler
=
config
(
'fixed.SkuAuditRuler'
);
unset
(
$defaultRuler
[
'name_map'
]);
return
config
(
'fixed.SkuAuditRuler'
);
}
else
{
return
json_decode
(
$ruler
,
true
);
...
...
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