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
efbb8d39
authored
Jul 28, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
f91b7f89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
12 deletions
app/Http/Services/LogService.php
app/Http/Services/PriceService.php
app/Http/Services/LogService.php
View file @
efbb8d39
<?php
<?php
namespace
App\Http\Services
;
namespace
App\Http\Services
;
//后台用户相关信息服务
//后台用户相关信息服务
...
@@ -8,12 +7,9 @@ use App\Http\Controllers\Filter\LogFilter;
...
@@ -8,12 +7,9 @@ use App\Http\Controllers\Filter\LogFilter;
use
App\Http\Transformers\LogTransformer
;
use
App\Http\Transformers\LogTransformer
;
use
App\Http\Transformers\SupplierTransformer
;
use
App\Http\Transformers\SupplierTransformer
;
use
App\Model\LogModel
;
use
App\Model\LogModel
;
use
App\Model\SupplierChannelModel
;
use
Illuminate\Support\Facades\DB
;
class
LogService
class
LogService
{
{
//添加日志
//添加日志
public
function
AddLog
(
$supplierId
,
$type
,
$action
,
$content
,
$remark
=
''
)
public
function
AddLog
(
$supplierId
,
$type
,
$action
,
$content
,
$remark
=
''
)
{
{
...
@@ -123,7 +119,6 @@ class LogService
...
@@ -123,7 +119,6 @@ class LogService
$contact
=
json_decode
(
$contact
,
true
);
$contact
=
json_decode
(
$contact
,
true
);
//更新
//更新
if
(
!
empty
(
$contact
[
'old_contact'
])
&&
!
empty
(
$contact
[
'new_contact'
]))
{
if
(
!
empty
(
$contact
[
'old_contact'
])
&&
!
empty
(
$contact
[
'new_contact'
]))
{
// $diffCols = array_diff($contact['old_contact'], $contact['new_contact']);
$oldContent
=
$this
->
contactDesc
(
$contact
[
'old_contact'
]);
$oldContent
=
$this
->
contactDesc
(
$contact
[
'old_contact'
]);
$newContent
=
$this
->
contactDesc
(
$contact
[
'new_contact'
]);
$newContent
=
$this
->
contactDesc
(
$contact
[
'new_contact'
]);
return
$oldContent
.
' 修改为 '
.
$newContent
;
return
$oldContent
.
' 修改为 '
.
$newContent
;
...
...
app/Http/Services/PriceService.php
View file @
efbb8d39
<?php
<?php
namespace
App\Http\Services
;
namespace
App\Http\Services
;
//价格相关服务
//价格相关服务
use
App\Model\RedisModel
;
class
PriceService
use
Illuminate\Support\Facades\DB
;
//用于判断是否已经查看的服务
class
PriceService
{
{
//获取最小阶梯的价格
//获取最小阶梯的价格
public
function
getMoqPrice
(
$price
)
public
function
getMoqPrice
(
$price
)
...
...
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