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
452ab34c
authored
May 26, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加搜索网址可配置
parent
32756e23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
app/Model/CommonModel.php
config/website.php
app/Model/CommonModel.php
View file @
452ab34c
...
...
@@ -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
=
[];
...
...
config/website.php
View file @
452ab34c
...
...
@@ -13,6 +13,12 @@ return [
'search'
=>
$domain_config
[
'domain'
][
'login_domain'
]
.
'/api/search'
,
'dashboard'
=>
$domain_config
[
'domain'
][
'login_domain'
]
.
'/dashboard'
,
],
////////////////////
"search_url"
=>
"http://soso12.ichunt.com"
,
//本地235数据库
////////////////本地配置//////////////////////本地235数据库
////////////////本地配置////////////////////
'export_source_items_id'
=>
"30"
,
//导出来源明细id
'company_info_origin'
=>
[
#原始公司信息
...
...
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