Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
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
c804081c
authored
Apr 09, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新品牌搜索
parent
f7409a63
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
app/Http/Controllers/ApiController.php
app/Model/Server/ServerFoostoneModel.php
app/Http/Controllers/ApiController.php
View file @
c804081c
...
@@ -128,7 +128,7 @@ class ApiController extends Controller
...
@@ -128,7 +128,7 @@ class ApiController extends Controller
}
}
//查询品牌
//查询品牌
private
function
GetBrand
(
$request
){
private
function
GetBrand
(
$request
){
CommonModel
::
getBrand
(
$request
->
p
);
(
new
ServerFoostoneModel
(
$request
->
appid
,
$request
->
key
))
->
getBrand
(
$request
->
input
(
"p"
),
100
,
2
);
}
}
//价格明细弹框
//价格明细弹框
private
function
PurePrice
(
$request
){
private
function
PurePrice
(
$request
){
...
...
app/Model/Server/ServerFoostoneModel.php
View file @
c804081c
...
@@ -56,5 +56,12 @@ class ServerFoostoneModel
...
@@ -56,5 +56,12 @@ class ServerFoostoneModel
$data
[
'goods_type'
]
=
$goods_type
;
$data
[
'goods_type'
]
=
$goods_type
;
return
$this
->
push
(
'/third/api/obtain/list/sku'
,
$data
,
$type
);
return
$this
->
push
(
'/third/api/obtain/list/sku'
,
$data
,
$type
);
}
}
//模糊搜索品牌
public
function
getBrand
(
$keyword
,
$limit
=
100
,
$type
=
1
){
$data
[
'key_word'
]
=
$keyword
;
$data
[
'limit'
]
=
$limit
;
$s
=
$this
->
push
(
'/third/api/query/brand/list'
,
$data
,
$type
);
echo
\GuzzleHttp\json_encode
(
$s
[
'data'
],
JSON_UNESCAPED_UNICODE
);
}
}
}
\ No newline at end of file
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