Commit ea7c42c2 by 杨树贤

修改服务地址的获取方式

parent c293ed35
APP_NAME=Laravel APP_NAME=Laravel
APP_ENV=local APP_ENV=local
APP_KEY=base64:nOavyGKkyw4fi+Xv2hK7PrfYw9bapQzqlqMXDIobp9I= APP_KEY=base64:nOavyGKkyw4fi+Xv2hK7PrfYw9bapQzqlqMXDIobp9I=
APP_DEBUG=true APP_DEBUG=false
APP_LOG_LEVEL=debug APP_LOG_LEVEL=debug
APP_URL=http://localhost APP_URL=http://localhost
domain=icsales.cc domain=icsales.cc
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=192.168.2.232 DB_HOST=
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=ic_data DB_DATABASE=
DB_USERNAME=ic_data DB_USERNAME=
DB_PASSWORD=ic_data#zsyM DB_PASSWORD=
DB_PREFIX=ic_ DB_PREFIX=
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file
...@@ -52,4 +52,5 @@ MENU_SIGN=/web/ ...@@ -52,4 +52,5 @@ MENU_SIGN=/web/
LOGIN_DOMAIN=user.icsales.cc LOGIN_DOMAIN=user.icsales.cc
ES_URL = http://soapi.icsales.com:8001 ES_URL = http://soapi.icsales.com:8001
BASE_SERVER_URL = 192.168.10.10:61009
...@@ -15,8 +15,7 @@ class BaseService ...@@ -15,8 +15,7 @@ class BaseService
public function __construct() public function __construct()
{ {
$this->client = new Client([ $this->client = new Client([
'base_uri' => '192.168.10.10:61009', 'base_uri' => config('website.BASE_SERVER_URL'),
// 'base_uri' => 'http://ic_server_welfare.test',
'timeout' => 20, 'timeout' => 20,
]); ]);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
return [ return [
'admin' => ['ymx@ichunt.com'], 'admin' => ['ymx@ichunt.com'],
'webTitle' => 'IC助手后台', 'webTitle' => 'IC助手福利中心后台',
'domain' => env('domain'), 'domain' => env('domain'),
'login' => [ 'login' => [
...@@ -31,10 +31,7 @@ return [ ...@@ -31,10 +31,7 @@ return [
'key' => 'fh6y5t4rr351d2c3bryi', 'key' => 'fh6y5t4rr351d2c3bryi',
], ],
'ES_URL' => env('ES_URL', ''), 'ES_URL' => env('ES_URL', ''),
'BASE_SERVER_URL' => env('BASE_SERVER_URL', ''),
'GoodsInfoServer' => 'http://192.168.2.232:61002',
'OfferServer' => 'http://192.168.2.232:61004',
'cost_item' => [ 'cost_item' => [
1 => '1元', 1 => '1元',
......
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