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
72c288c7
authored
Mar 31, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
64283d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
app/Model/CommonModel.php
app/Model/QuoteModel.php
app/Model/CommonModel.php
View file @
72c288c7
...
...
@@ -213,13 +213,13 @@ class CommonModel extends Model
// 判断品牌是否存在
public
function
isBrandNameExists
(
$brand_name
)
{
return
DB
::
connection
(
"spu"
)
->
table
(
'
lie_
brand'
)
->
where
(
'brand_name'
,
$brand_name
)
->
value
(
'brand_id'
);
return
DB
::
connection
(
"spu"
)
->
table
(
'brand'
)
->
where
(
'brand_name'
,
$brand_name
)
->
value
(
'brand_id'
);
}
// 判断供应商是否存在
public
function
isSupplierNameExists
(
$supplier_name
)
{
return
DB
::
connection
(
'ass'
)
->
table
(
'
lie_
supplier_channel'
)
->
where
(
'supplier_name'
,
$supplier_name
)
->
value
(
'supplier_id'
);
return
DB
::
connection
(
'ass'
)
->
table
(
'supplier_channel'
)
->
where
(
'supplier_name'
,
$supplier_name
)
->
value
(
'supplier_id'
);
}
}
\ No newline at end of file
app/Model/QuoteModel.php
View file @
72c288c7
...
...
@@ -235,7 +235,7 @@ class QuoteModel extends Model
foreach
(
$data
as
&
$v
)
{
$currency_sign
=
$v
[
'currency'
]
==
1
?
'¥'
:
'$'
;
$v
[
'currency_val'
]
=
$v
[
'currency'
]
==
1
?
'RMB'
:
'USD'
;
$v
[
'currency_val'
]
=
array_get
(
Config
(
'quote.currency'
),
$v
[
'currency'
],
'人民币'
)
;
$v
[
'price'
]
=
$v
[
'currency'
]
==
1
?
$currency_sign
.
$v
[
'price_rmb'
]
:
$currency_sign
.
$v
[
'price_origin'
];
$v
[
'status_val'
]
=
array_get
(
Config
(
'quote.quote_status'
),
$v
[
'status'
],
''
);
...
...
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