Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
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
fd083914
authored
May 13, 2024
by
hcy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
深茂
parent
6f317ae4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
app/Http/Controllers/Api/SearchApiController.php
app/Http/Controllers/Api/SearchApiController.php
View file @
fd083914
...
@@ -19,6 +19,13 @@ class SearchApiController extends Controller
...
@@ -19,6 +19,13 @@ class SearchApiController extends Controller
public
function
skuLists
(
Request
$request
)
public
function
skuLists
(
Request
$request
)
{
{
$response
=
Http
::
asForm
()
->
post
(
$this
->
soUrl
.
"/semour/skuLists"
,
$request
->
input
());
$response
=
Http
::
asForm
()
->
post
(
$this
->
soUrl
.
"/semour/skuLists"
,
$request
->
input
());
if
(
$request
->
input
(
"debug"
)){
print_r
(
$this
->
soUrl
.
"/semour/skuLists"
);
print_r
(
"<br/>"
);
print_r
(
$response
->
body
());
print_r
(
"<br/>"
);
die
();
}
$data
=
json_decode
(
$response
->
body
(),
true
);
$data
=
json_decode
(
$response
->
body
(),
true
);
return
$this
->
setSuccess
(
"查询成功"
,
ApiCode
::
API_CODE_SUCCESS
,
\Arr
::
get
(
$data
,
"data"
));
return
$this
->
setSuccess
(
"查询成功"
,
ApiCode
::
API_CODE_SUCCESS
,
\Arr
::
get
(
$data
,
"data"
));
}
}
...
@@ -27,6 +34,13 @@ class SearchApiController extends Controller
...
@@ -27,6 +34,13 @@ class SearchApiController extends Controller
public
function
goodsDetail
(
Request
$request
)
public
function
goodsDetail
(
Request
$request
)
{
{
$response
=
Http
::
asForm
()
->
post
(
$this
->
soUrl
.
"/semour/goodsDetail"
,
$request
->
input
());
$response
=
Http
::
asForm
()
->
post
(
$this
->
soUrl
.
"/semour/goodsDetail"
,
$request
->
input
());
if
(
$request
->
input
(
"debug"
)){
print_r
(
$this
->
soUrl
.
"/semour/skuLists"
);
print_r
(
"<br/>"
);
print_r
(
$response
->
body
());
print_r
(
"<br/>"
);
die
();
}
$data
=
json_decode
(
$response
->
body
(),
true
);
$data
=
json_decode
(
$response
->
body
(),
true
);
return
$this
->
setSuccess
(
"查询成功"
,
ApiCode
::
API_CODE_SUCCESS
,
\Arr
::
get
(
$data
,
"data"
));
return
$this
->
setSuccess
(
"查询成功"
,
ApiCode
::
API_CODE_SUCCESS
,
\Arr
::
get
(
$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