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
edf88f63
authored
May 21, 2021
by
duwenjun
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
搜索域名配置
parent
60b62506
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
app/Model/CommonModel.php
app/Model/SearchModel.php
config/website.php
app/Model/CommonModel.php
View file @
edf88f63
...
...
@@ -141,7 +141,7 @@ class CommonModel extends Model
//模糊搜索sku型号
public
function
SkuList
(
$k
,
$types
=
1
)
{
$url
=
"http://so12.ichunt.com
/search/spu/think?spu_name="
.
$k
;
$url
=
Config
(
'website.search_url'
)
.
"
/search/spu/think?spu_name="
.
$k
;
$res
=
post_curl
(
$url
,[]);
$resArr
=
\GuzzleHttp\json_decode
(
$res
,
true
);
$temp
=
[];
...
...
app/Model/SearchModel.php
View file @
edf88f63
...
...
@@ -15,7 +15,7 @@ class SearchModel
private
$SERVICE_URL
;
public
function
__construct
()
{
$this
->
SERVICE_URL
=
"http://so12.ichunt.com/"
;
$this
->
SERVICE_URL
=
Config
(
'website.search_url'
)
;
}
/*
...
...
config/website.php
View file @
edf88f63
...
...
@@ -46,6 +46,8 @@ return [
'frq_url'
=>
$domain_config
[
'domain'
][
'frq_url'
],
'search_url'
=>
$domain_config
[
'domain'
][
'search_url'
],
// 权限系统
'perm_url'
=>
$domain_config
[
'domain'
][
'perm_url'
],
// 获取用户权限接口
...
...
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