Commit 452ab34c by hcy001

添加搜索网址可配置

parent 32756e23
Showing with 7 additions and 1 deletions
...@@ -141,7 +141,7 @@ class CommonModel extends Model ...@@ -141,7 +141,7 @@ class CommonModel extends Model
//模糊搜索sku型号 //模糊搜索sku型号
public function SkuList($k,$types = 1) 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,[]); $res = post_curl($url,[]);
$resArr = \GuzzleHttp\json_decode($res,true); $resArr = \GuzzleHttp\json_decode($res,true);
$temp = []; $temp = [];
......
...@@ -13,6 +13,12 @@ return [ ...@@ -13,6 +13,12 @@ return [
'search'=> $domain_config['domain']['login_domain'] . '/api/search', 'search'=> $domain_config['domain']['login_domain'] . '/api/search',
'dashboard'=> $domain_config['domain']['login_domain'] . '/dashboard', 'dashboard'=> $domain_config['domain']['login_domain'] . '/dashboard',
], ],
////////////////////
"search_url"=>"http://soso12.ichunt.com", //本地235数据库
////////////////本地配置//////////////////////本地235数据库
////////////////本地配置//////////////////// ////////////////本地配置////////////////////
'export_source_items_id' => "30", //导出来源明细id 'export_source_items_id' => "30", //导出来源明细id
'company_info_origin'=>[ #原始公司信息 'company_info_origin'=>[ #原始公司信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment