Commit edf88f63 by duwenjun

搜索域名配置

parent 60b62506
...@@ -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 = [];
......
...@@ -15,7 +15,7 @@ class SearchModel ...@@ -15,7 +15,7 @@ class SearchModel
private $SERVICE_URL; private $SERVICE_URL;
public function __construct() public function __construct()
{ {
$this->SERVICE_URL = "http://so12.ichunt.com/"; $this->SERVICE_URL = Config('website.search_url');
} }
/* /*
......
...@@ -46,6 +46,8 @@ return [ ...@@ -46,6 +46,8 @@ return [
'frq_url' => $domain_config['domain']['frq_url'], 'frq_url' => $domain_config['domain']['frq_url'],
'search_url' => $domain_config['domain']['search_url'],
// 权限系统 // 权限系统
'perm_url' => $domain_config['domain']['perm_url'], 'perm_url' => $domain_config['domain']['perm_url'],
// 获取用户权限接口 // 获取用户权限接口
......
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