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
3f9cf170
authored
Mar 22, 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
d009d051
ef73785f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
3f9cf170
...
...
@@ -309,6 +309,12 @@ class QuoteModel extends Model
$inquiry_items_status
=
InquiryItemsModel
::
where
(
'id'
,
$quote_info
[
'inquiry_items_id'
])
->
value
(
'status'
);
if
(
$inquiry_items_status
==
-
1
)
return
[
1
,
'新增报价失败,该询价明细已关闭'
];
$brand
=
json_decode
(
$quote_info
[
'brand_s'
],
true
);
$quote_info
[
'brand_id'
]
=
$brand
[
0
][
'brand_id'
];
$quote_info
[
'brand_name'
]
=
$brand
[
0
][
'brand_name'
];
unset
(
$quote_info
[
'brand_s'
]);
$params
=
[];
$params
[
'spu_name'
]
=
strtoupper
(
$quote_info
[
'goods_name'
]);
$params
[
'brand_name'
]
=
$quote_info
[
'brand_name'
];
...
...
@@ -581,7 +587,15 @@ class QuoteModel extends Model
if
(
!
$input
[
'quote_id'
])
return
[
-
1
,
'参数缺失'
];
try
{
$this
->
where
(
'id'
,
$input
[
'quote_id'
])
->
update
(
$input
[
'quote_info'
]);
$quote_info
=
$input
[
'quote_info'
];
$brand
=
json_decode
(
$quote_info
[
'brand_s'
],
true
);
$quote_info
[
'brand_id'
]
=
$brand
[
0
][
'brand_id'
];
$quote_info
[
'brand_name'
]
=
$brand
[
0
][
'brand_name'
];
unset
(
$quote_info
[
'brand_s'
]);
$this
->
where
(
'id'
,
$input
[
'quote_id'
])
->
update
(
$quote_info
);
$data
=
[];
$data
[
'types'
]
=
2
;
...
...
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