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
e4fb599d
authored
Mar 29, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整编辑报价
parent
5cb723e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
e4fb599d
...
@@ -703,6 +703,19 @@ class QuoteModel extends Model
...
@@ -703,6 +703,19 @@ class QuoteModel extends Model
$quote_info
[
'brand_name'
]
=
$brand
[
0
][
'brand_name'
];
$quote_info
[
'brand_name'
]
=
$brand
[
0
][
'brand_name'
];
unset
(
$quote_info
[
'brand_s'
]);
unset
(
$quote_info
[
'brand_s'
]);
$params
=
[];
$params
[
'spu_name'
]
=
strtoupper
(
$quote_info
[
'goods_name'
]);
$params
[
'brand_name'
]
=
$quote_info
[
'brand_name'
];
$SearchModel
=
new
SearchModel
;
$res
=
$SearchModel
->
getClassName
(
json_encode
([
$params
]));
// 获取型号分类
if
(
$res
)
{
$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'
];
}
$this
->
where
(
'id'
,
$input
[
'quote_id'
])
->
update
(
$quote_info
);
$this
->
where
(
'id'
,
$input
[
'quote_id'
])
->
update
(
$quote_info
);
$data
=
[];
$data
=
[];
...
...
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