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
a7f32a2d
authored
Feb 20, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
价格问题
parent
d5563313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Http/Services/PriceService.php
app/Http/Services/PriceService.php
View file @
a7f32a2d
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
namespace
App\Http\Services
;
namespace
App\Http\Services
;
//价格相关服务
//价格相关服务
class
PriceService
class
PriceService
{
{
//获取最小阶梯的价格
//获取最小阶梯的价格
public
function
getMoqPrice
(
$price
)
public
function
getMoqPrice
(
$price
)
{
{
$price
=
is_array
(
$price
)
?
$price
:
json_decode
(
$price
,
true
);
$price
=
is_array
(
$price
)
?
$price
:
json_decode
(
$price
,
true
);
if
(
count
(
$price
)
>=
1
){
if
(
count
(
$price
)
>=
1
){
return
$price
[
0
]
;
return
current
(
$price
)
;
}
}
return
[];
return
[];
...
...
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