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
441a40d0
authored
Apr 11, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
5ac2a05a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
app/Model/Server/ServerFoostoneModel.php
app/Model/Server/ServerPurModel.php
app/Model/Server/ServerFoostoneModel.php
View file @
441a40d0
...
...
@@ -54,7 +54,7 @@ class ServerFoostoneModel
//获取sku列表
public
function
SkuList
(
$data
,
$type
=
1
,
$goods_type
=
[
3
,
4
]){
$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
){
...
...
app/Model/Server/ServerPurModel.php
View file @
441a40d0
...
...
@@ -33,7 +33,14 @@ class ServerPurModel
die
();
}
$p
=
json_decode
(
$res
,
true
);
$p
[
'code'
]
=
$p
[
'errcode'
];
if
(
array_key_exists
(
'errcode'
,
$p
)){
$p
[
'code'
]
=
$p
[
'errcode'
];
unset
(
$p
[
'errcode'
]);
}
if
(
array_key_exists
(
'errmsg'
,
$p
)){
$p
[
'msg'
]
=
$p
[
'errmsg'
];
unset
(
$p
[
'errmsg'
]);
}
unset
(
$p
[
'errcode'
]);
if
(
$type
==
1
){
echo
json_encode
(
$p
);
...
...
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