Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
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
c5395ff2
authored
Mar 30, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
ssh://119.23.72.7:22611/q578953158/php_frq_api
parents
505d0cc7
a5ec370c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
c5395ff2
...
...
@@ -381,8 +381,9 @@ class QuoteModel extends Model
$SearchModel
=
new
SearchModel
;
$res
=
$SearchModel
->
getClassName
(
json_encode
([
$params
]));
// 获取型号分类
if
(
$res
)
{
if
(
isset
(
$res
[
$params
[
'spu_name'
]
.
"#"
.
strtoupper
(
$params
[
"brand_name"
])])
)
{
$classInfo
=
$res
[
$params
[
'spu_name'
]
.
"#"
.
strtoupper
(
$params
[
"brand_name"
])];
$quote_info
[
'class_id2'
]
=
$classInfo
[
'class_id2'
];
$quote_info
[
'class_id2_name'
]
=
$classInfo
[
'class_id2_name'
];
}
...
...
@@ -763,11 +764,12 @@ class QuoteModel extends Model
$SearchModel
=
new
SearchModel
;
$res
=
$SearchModel
->
getClassName
(
json_encode
([
$params
]));
// 获取型号分类
if
(
$res
)
{
if
(
isset
(
$res
[
$params
[
'spu_name'
]
.
"#"
.
strtoupper
(
$params
[
"brand_name"
])])
)
{
$classInfo
=
$res
[
$params
[
'spu_name'
]
.
"#"
.
strtoupper
(
$params
[
"brand_name"
])];
$quote_info
[
'class_id2'
]
=
$classInfo
[
'class_id2'
];
$quote_info
[
'class_id2_name'
]
=
$classInfo
[
'class_id2_name'
];
}
}
$quote_info
[
'delivery_time'
]
=
$quote_info
[
'delivery_time_unit'
]
==
'天'
?
$quote_info
[
'delivery_time'
]
:
$quote_info
[
'delivery_time'
]
*
7
;
unset
(
$quote_info
[
'delivery_time_unit'
]);
...
...
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