Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_server_welfare
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
197aed22
authored
Aug 30, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复逻辑上的问题
parent
0c6a0e6d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
47 deletions
.env
app/Http/Controllers/UserExchangesController.php
app/Models/Code.php
app/Models/IntegralBill.php
routes/web.php
storage/laravels.json
storage/laravels.pid
.env
View file @
197aed22
...
@@ -11,6 +11,15 @@ DB_USERNAME=ic_welfare
...
@@ -11,6 +11,15 @@ DB_USERNAME=ic_welfare
DB_PASSWORD=ic_welfare#zsyM
DB_PASSWORD=ic_welfare#zsyM
DB_PREFIX=ic_
DB_PREFIX=ic_
#ic_data数据库的配置
IC_DATA_DB_HOST_R=192.168.2.232
IC_DATA_DB_HOST_W=192.168.2.232
IC_DATA_DB_PORT=3306
IC_DATA_DB_DATABASE=ic_data
IC_DATA_DB_USERNAME=ic_data
IC_DATA_DB_PASSWORD=ic_data#zsyM
IC_DATA_DB_PREFIX=ic_
CACHE_DRIVER=file
CACHE_DRIVER=file
QUEUE_DRIVER=sync
QUEUE_DRIVER=sync
...
...
app/Http/Controllers/UserExchangesController.php
View file @
197aed22
...
@@ -105,73 +105,79 @@ class UserExchangesController extends Controller
...
@@ -105,73 +105,79 @@ class UserExchangesController extends Controller
}
}
//用于抢兑换名额
//用于抢兑换名额
public
function
create
(
Request
$request
){
public
function
create
(
Request
$request
)
$Field
=
[
'user_id'
,
'exchange_id'
];
{
$Field
=
[
'user_id'
,
'exchange_id'
];
$collert
=
$request
->
only
(
$Field
);
$collert
=
$request
->
only
(
$Field
);
$Redis
=
new
RedisModel
();
$Redis
=
new
RedisModel
();
//先判断客户今天是否抢到名额
//先判断客户今天是否抢到名额
$time
=
date
(
'Ymd'
);
$time
=
date
(
'Ymd'
);
$Pre
=
'ic_exchanges_quota_'
.
$time
;
$Pre
=
'ic_exchanges_quota_'
.
$time
;
$Record
=
$Redis
->
hget
(
$Pre
,
$collert
[
'user_id'
]);
$Record
=
$Redis
->
hget
(
$Pre
,
$collert
[
'user_id'
]);
if
(
$Record
)
if
(
$Record
)
{
return
$this
->
Export
(
ErrorCode
(
100
,
1
),
'今天已经兑换过来,请明天再来吧'
);
return
$this
->
Export
(
ErrorCode
(
100
,
1
),
'今天已经兑换过来,请明天再来吧'
);
}
//获取用户红包
//获取用户红包
$UserInfo
=
$Redis
->
hget
(
'ic_user'
,
$collert
[
'user_id'
]);
$UserInfo
=
$Redis
->
hget
(
'ic_user'
,
$collert
[
'user_id'
]);
$UserInfo
=
json_decode
(
$UserInfo
,
true
);
$UserInfo
=
json_decode
(
$UserInfo
,
true
);
if
(
empty
(
$UserInfo
[
'integral'
]))
if
(
empty
(
$UserInfo
[
'integral'
]))
{
return
$this
->
Export
(
ErrorCode
(
102
,
1
)
,
'红包余额不足'
);
return
$this
->
Export
(
ErrorCode
(
102
,
1
),
'红包余额不足'
);
}
//获取红包配置
//获取红包配置
$ic_exchange_settings
=
json_decode
(
$Redis
->
hget
(
'ic_exchange_settings'
,
$collert
[
'exchange_id'
])
,
true
);
$ic_exchange_settings
=
json_decode
(
$Redis
->
hget
(
'ic_exchange_settings'
,
$collert
[
'exchange_id'
])
,
true
);
//判断红包提现设置是否可用
//判断红包提现设置是否可用
if
(
!
$ic_exchange_settings
||
$ic_exchange_settings
[
'status'
]
!=
1
)
if
(
!
$ic_exchange_settings
||
$ic_exchange_settings
[
'status'
]
!=
1
)
{
return
$this
->
Export
(
ErrorCode
(
103
,
1
)
,
'当前提现不可用'
);
return
$this
->
Export
(
ErrorCode
(
103
,
1
),
'当前提现不可用'
);
}
//判断用余额
//判断用余额
if
(
$ic_exchange_settings
[
'amount'
]
>
$UserInfo
[
'integral'
])
if
(
$ic_exchange_settings
[
'amount'
]
>
$UserInfo
[
'integral'
])
{
return
$this
->
Export
(
ErrorCode
(
102
,
1
)
,
'红包余额不足'
);
return
$this
->
Export
(
ErrorCode
(
102
,
1
),
'红包余额不足'
);
}
//消费名额
//消费名额
$Cahce
=
$Redis
->
rpop
(
'ic_exchange_settings_'
.
$collert
[
'exchange_id'
]);
$Cahce
=
$Redis
->
rpop
(
'ic_exchange_settings_'
.
$collert
[
'exchange_id'
]);
if
(
!
$Cahce
)
if
(
!
$Cahce
)
{
return
$this
->
Export
(
ErrorCode
(
101
,
1
),
'名额被抢光了'
);
return
$this
->
Export
(
ErrorCode
(
101
,
1
),
'名额被抢光了'
);
$Cahce
=
json_decode
(
$Cahce
,
true
);
}
$Cahce
=
json_decode
(
$Cahce
,
true
);
//记录当前消费的名额,自动过期
//记录当前消费的名额,自动过期
$Redis
->
hset
(
$Pre
,
$collert
[
'user_id'
]
,
$collert
[
'exchange_id'
]);
$Redis
->
hset
(
$Pre
,
$collert
[
'user_id'
]
,
$collert
[
'exchange_id'
]);
$Redis
->
expire
(
$Pre
,
60
*
60
*
24
);
$Redis
->
expire
(
$Pre
,
60
*
60
*
24
);
try
{
try
{
DB
::
beginTransaction
();
DB
::
beginTransaction
();
//扣减用户金额
//扣减用户金额
$UserIntrgralModel
=
new
UserIntegral
();
$UserIntrgralModel
=
new
UserIntegral
();
$result
=
$UserIntrgralModel
->
Deduction
(
$collert
[
'user_id'
]
,
$ic_exchange_settings
[
'amount'
]);
$result
=
$UserIntrgralModel
->
Deduction
(
$collert
[
'user_id'
],
$ic_exchange_settings
[
'amount'
]);
if
(
!
$result
)
{
if
(
!
$result
)
{
ErrorLog
(
ErrorCode
(
1
,
9
),
'扣减用户红包失败,用户ID:'
.
$collert
[
'user_id'
]);
ErrorLog
(
ErrorCode
(
1
,
9
),
'扣减用户红包失败,用户ID:'
.
$collert
[
'user_id'
]);
throw
new
\Exception
(
'扣减用户红包失败,用户ID:'
.
$collert
[
'user_id'
]);
throw
new
\Exception
(
'扣减用户红包失败,用户ID:'
.
$collert
[
'user_id'
]);
}
}
//添加红包记录
//添加红包记录
$UserExchangeModel
=
new
UserExchange
();
$UserExchangeModel
=
new
UserExchange
();
$data
=
[
$data
=
[
'user_id'
=>
$collert
[
'user_id'
],
'user_id'
=>
$collert
[
'user_id'
],
'type'
=>
$ic_exchange_settings
[
'type'
],
'type'
=>
$ic_exchange_settings
[
'type'
],
'exchange_id'
=>
$ic_exchange_settings
[
'id'
],
'exchange_id'
=>
$ic_exchange_settings
[
'id'
],
'amount'
=>
$ic_exchange_settings
[
'amount'
]
'amount'
=>
$ic_exchange_settings
[
'amount'
],
];
];
$result
=
$UserExchangeModel
->
addRecord
(
$data
);
$result
=
$UserExchangeModel
->
addRecord
(
$data
);
if
(
!
$result
)
{
if
(
!
$result
)
{
$Errinfo
=
'红包提现记录添加失败'
.
$collert
[
'user_id'
];
$Errinfo
=
'红包提现记录添加失败'
.
$collert
[
'user_id'
];
ErrorLog
(
ErrorCode
(
1
,
9
),
$Errinfo
);
ErrorLog
(
ErrorCode
(
1
,
9
),
$Errinfo
);
throw
new
\Exception
(
$Errinfo
);
throw
new
\Exception
(
$Errinfo
);
}
}
...
@@ -180,23 +186,25 @@ class UserExchangesController extends Controller
...
@@ -180,23 +186,25 @@ class UserExchangesController extends Controller
//扣减缓存里面的红包金额
//扣减缓存里面的红包金额
$UserInfo
[
'integral'
]
=
$UserInfo
[
'integral'
]
-
$ic_exchange_settings
[
'amount'
];
$UserInfo
[
'integral'
]
=
$UserInfo
[
'integral'
]
-
$ic_exchange_settings
[
'amount'
];
$Redis
->
hset
(
'ic_user'
,
$UserInfo
[
'user_id'
]
,
json_encode
(
$UserInfo
));
$Redis
->
hset
(
'ic_user'
,
$UserInfo
[
'user_id'
]
,
json_encode
(
$UserInfo
));
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
if
(
$data
[
'amount'
]
<
20
&&
$data
[
'type'
]
==
1
)
{
if
(
$data
[
'amount'
]
<
20
)
{
$Task
=
new
ExchangesTask
(
$data
,
$ic_exchange_settings
);
$Task
=
new
ExchangesTask
(
$data
,
$ic_exchange_settings
);
$Task
->
delay
(
10
);
$Task
->
delay
(
10
);
$result
=
Task
::
deliver
(
$Task
);
$result
=
Task
::
deliver
(
$Task
);
if
(
!
$result
)
if
(
!
$result
)
{
ErrorLog
(
ErrorCode
(
1
,
9
),
'提现任务推送失败,提现ID:'
.
$data
[
'id'
]);
ErrorLog
(
ErrorCode
(
1
,
9
),
'提现任务推送失败,提现ID:'
.
$data
[
'id'
]);
}
}
}
return
$this
->
Export
(
0
,
'ok'
,[
'data'
=>
$data
[
'id'
]]);
return
$this
->
Export
(
0
,
'ok'
,
[
'data'
=>
$data
[
'id'
]]);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
DB
::
rollBack
();
DB
::
rollBack
();
SendErrMsg
(
$e
);
SendErrMsg
(
$e
);
return
$this
->
Export
(
ErrorCode
(
100
,
5
),
'提现失败'
);
return
$this
->
Export
(
ErrorCode
(
100
,
5
),
'提现失败'
);
}
}
}
}
}
}
\ No newline at end of file
app/Models/Code.php
View file @
197aed22
...
@@ -24,6 +24,10 @@ class Code extends Model
...
@@ -24,6 +24,10 @@ class Code extends Model
$exist
=
$redis
->
sismember
(
'ic_welfare_code_limit'
,
$userId
);
$exist
=
$redis
->
sismember
(
'ic_welfare_code_limit'
,
$userId
);
//如果是存在的话,代表这个人已经输入过红包码,就返回false
//如果是存在的话,代表这个人已经输入过红包码,就返回false
if
(
$exist
)
{
if
(
$exist
)
{
//需要记录一下这种奇怪的请求,因为如果兑换过一次之后,前端那边是不会有界面显示兑换的了
//所以如果出现这个已经兑换过还过来兑换的情况,可能是有人用http请求想刷红包
Log
::
error
(
"疑似刷红包码兑换,用户Id是
$userId
,红包码是
$code
"
);
return
false
;
return
false
;
}
else
{
}
else
{
//还要去判断这个code的主人今天的被兑换次数是否超过限额
//还要去判断这个code的主人今天的被兑换次数是否超过限额
...
...
app/Models/IntegralBill.php
View file @
197aed22
...
@@ -46,6 +46,7 @@ class IntegralBill extends Model
...
@@ -46,6 +46,7 @@ class IntegralBill extends Model
}
}
//这是一个比较重要的方法,这个方法关系着需不需要插入红包获取流水
//这是一个比较重要的方法,这个方法关系着需不需要插入红包获取流水
//data里面必须有user_id,integral_id和add_time三个键值
public
function
createIntegralBill
(
$data
=
[])
public
function
createIntegralBill
(
$data
=
[])
{
{
$integralId
=
$data
[
'integral_id'
];
$integralId
=
$data
[
'integral_id'
];
...
...
routes/web.php
View file @
197aed22
...
@@ -15,9 +15,6 @@ use App\Tasks\IntegralBillTask;
...
@@ -15,9 +15,6 @@ use App\Tasks\IntegralBillTask;
use
Hhxsv5\LaravelS\Swoole\Task\Task
;
use
Hhxsv5\LaravelS\Swoole\Task\Task
;
$router
->
get
(
'/'
,
function
()
use
(
$router
)
{
$router
->
get
(
'/'
,
function
()
use
(
$router
)
{
$task
=
new
\App\Tasks\TestTask
();
$task
->
delay
(
30
);
$result
=
Task
::
deliver
(
$task
);
return
$router
->
app
->
version
();
return
$router
->
app
->
version
();
});
});
...
@@ -60,6 +57,7 @@ $router->post('/exchange_settings/batchUpdateStatus', 'ExchangeSettingsControlle
...
@@ -60,6 +57,7 @@ $router->post('/exchange_settings/batchUpdateStatus', 'ExchangeSettingsControlle
//用户兑换记录
//用户兑换记录
$router
->
post
(
'/user_exchanges/info'
,
'UserExchangesController@show'
);
$router
->
post
(
'/user_exchanges/info'
,
'UserExchangesController@show'
);
$router
->
post
(
'/user_exchanges/add'
,
'UserExchangesController@store'
);
$router
->
post
(
'/user_exchanges/audit'
,
'UserExchangesController@audit'
);
$router
->
post
(
'/user_exchanges/audit'
,
'UserExchangesController@audit'
);
$router
->
post
(
'/user_exchanges/list'
,
'UserExchangesController@index'
);
$router
->
post
(
'/user_exchanges/list'
,
'UserExchangesController@index'
);
$router
->
post
(
'/user_exchanges/update'
,
'UserExchangesController@update'
);
$router
->
post
(
'/user_exchanges/update'
,
'UserExchangesController@update'
);
...
...
storage/laravels.json
View file @
197aed22
{
"server"
:{
"listen_ip"
:
"0.0.0.0"
,
"listen_port"
:
"61009"
,
"socket_type"
:
1
,
"enable_coroutine_runtime"
:
false
,
"server"
:
"LaravelS"
,
"handle_static"
:
false
,
"laravel_base_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"inotify_reload"
:{
"enable"
:
false
,
"watch_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"file_types"
:[
".php"
],
"excluded_dirs"
:[],
"log"
:
true
},
"event_handlers"
:[],
"websocket"
:{
"enable"
:
false
},
"sockets"
:[],
"processes"
:[],
"timer"
:{
"enable"
:
true
,
"jobs"
:[
"Hhxsv5
\\
LaravelS
\\
Illuminate
\\
LaravelScheduleJob"
],
"max_wait_time"
:
5
},
"events"
:[],
"swoole_tables"
:[],
"register_providers"
:[],
"cleaners"
:[],
"destroy_controllers"
:{
"enable"
:
false
,
"excluded_list"
:[]},
"swoole"
:{
"daemonize"
:
true
,
"dispatch_mode"
:
2
,
"reactor_num"
:
2
,
"worker_num"
:
2
,
"task_worker_num"
:
2
,
"task_ipc_mode"
:
1
,
"task_max_request"
:
8000
,
"task_tmpdir"
:
"/dev/shm"
,
"max_request"
:
8000
,
"open_tcp_nodelay"
:
true
,
"pid_file"
:
"/home/vagrant/code/ic_server_welfare/storage/laravels.pid"
,
"log_file"
:
"/home/vagrant/code/ic_server_welfare/storage/logs/swoole-2019-08.log"
,
"log_level"
:
4
,
"document_root"
:
"/home/vagrant/code/ic_server_welfare/public"
,
"buffer_output_size"
:
2097152
,
"socket_buffer_size"
:
134217728
,
"package_max_length"
:
4194304
,
"reload_async"
:
true
,
"max_wait_time"
:
60
,
"enable_reuse_port"
:
true
,
"enable_coroutine"
:
false
,
"http_compression"
:
false
},
"enable_gzip"
:
false
,
"process_prefix"
:
"/home/vagrant/code/ic_server_welfare"
,
"ignore_check_pid"
:
false
},
"laravel"
:{
"root_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"static_path"
:
"/home/vagrant/code/ic_server_welfare/public"
,
"cleaners"
:[],
"register_providers"
:[],
"destroy_controllers"
:{
"enable"
:
false
,
"excluded_list"
:[]},
"is_lumen"
:
true
,
"_SERVER"
:{
"LESSOPEN"
:
"| /usr/bin/lesspipe %s"
,
"MAIL"
:
"/var/mail/vagrant"
,
"USER"
:
"vagrant"
,
"SSH_CLIENT"
:
"10.0.2.2 51475 22"
,
"LANGUAGE"
:
"en_US:"
,
"SHLVL"
:
"1"
,
"HOME"
:
"/home/vagrant"
,
"OLDPWD"
:
"/home/vagrant"
,
"SSH_TTY"
:
"/dev/pts/0"
,
"LOGNAME"
:
"vagrant"
,
"_"
:
"/usr/bin/php"
,
"XDG_SESSION_ID"
:
"9"
,
"TERM"
:
"cygwin"
,
"RBENV_SHELL"
:
"bash"
,
"PATH"
:
"/home/vagrant/.composer/vendor/bin:/usr/local/go/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/vagrant/.dotnet/tools"
,
"S_COLORS"
:
"auto"
,
"XDG_RUNTIME_DIR"
:
"/run/user/1000"
,
"LANG"
:
"en_US.UTF-8"
,
"LS_COLORS"
:
"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
,
"SHELL"
:
"/bin/bash"
,
"LESSCLOSE"
:
"/usr/bin/lesspipe %s %s"
,
"LC_ALL"
:
"en_US.UTF-8"
,
"PWD"
:
"/home/vagrant/code/ic_server_welfare"
,
"SSH_CONNECTION"
:
"10.0.2.2 51475 10.0.2.15 22"
,
"XDG_DATA_DIRS"
:
"/usr/local/share:/usr/share:/var/lib/snapd/desktop"
,
"PHP_SELF"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"SCRIPT_NAME"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"SCRIPT_FILENAME"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"PATH_TRANSLATED"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"DOCUMENT_ROOT"
:
""
,
"REQUEST_TIME_FLOAT"
:
1566894190.451266
,
"REQUEST_TIME"
:
1566894190
,
"argv"
:[
"/home/vagrant/code/ic_server_welfare/artisan"
,
"laravels"
,
"config"
,
"--daemonize"
],
"argc"
:
4
,
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
"0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt"
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"ic_welfare"
,
"DB_USERNAME"
:
"ic_welfare"
,
"DB_PASSWORD"
:
"ic_welfare#zsyM"
,
"DB_PREFIX"
:
"ic_"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"SYSTEM_CODE"
:
"09"
,
"SYSTEM_NAME"
:
"IC业务助手福利中心服务"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"61009"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.235"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"SHELL_VERBOSITY"
:
0
},
"_ENV"
:{
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
"0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt"
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"ic_welfare"
,
"DB_USERNAME"
:
"ic_welfare"
,
"DB_PASSWORD"
:
"ic_welfare#zsyM"
,
"DB_PREFIX"
:
"ic_"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"SYSTEM_CODE"
:
"09"
,
"SYSTEM_NAME"
:
"IC业务助手福利中心服务"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"61009"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.235"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"SHELL_VERBOSITY"
:
0
}}}
{
"server"
:{
"listen_ip"
:
"0.0.0.0"
,
"listen_port"
:
"61009"
,
"socket_type"
:
1
,
"enable_coroutine_runtime"
:
false
,
"server"
:
"LaravelS"
,
"handle_static"
:
false
,
"laravel_base_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"inotify_reload"
:{
"enable"
:
false
,
"watch_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"file_types"
:[
".php"
],
"excluded_dirs"
:[],
"log"
:
true
},
"event_handlers"
:[],
"websocket"
:{
"enable"
:
false
},
"sockets"
:[],
"processes"
:[],
"timer"
:{
"enable"
:
true
,
"jobs"
:[
"Hhxsv5
\\
LaravelS
\\
Illuminate
\\
LaravelScheduleJob"
],
"max_wait_time"
:
5
},
"events"
:[],
"swoole_tables"
:[],
"register_providers"
:[],
"cleaners"
:[],
"destroy_controllers"
:{
"enable"
:
false
,
"excluded_list"
:[]},
"swoole"
:{
"daemonize"
:
true
,
"dispatch_mode"
:
2
,
"reactor_num"
:
2
,
"worker_num"
:
2
,
"task_worker_num"
:
2
,
"task_ipc_mode"
:
1
,
"task_max_request"
:
8000
,
"task_tmpdir"
:
"/dev/shm"
,
"max_request"
:
8000
,
"open_tcp_nodelay"
:
true
,
"pid_file"
:
"/home/vagrant/code/ic_server_welfare/storage/laravels.pid"
,
"log_file"
:
"/home/vagrant/code/ic_server_welfare/storage/logs/swoole-2019-08.log"
,
"log_level"
:
4
,
"document_root"
:
"/home/vagrant/code/ic_server_welfare/public"
,
"buffer_output_size"
:
2097152
,
"socket_buffer_size"
:
134217728
,
"package_max_length"
:
4194304
,
"reload_async"
:
true
,
"max_wait_time"
:
60
,
"enable_reuse_port"
:
true
,
"enable_coroutine"
:
false
,
"http_compression"
:
false
},
"enable_gzip"
:
false
,
"process_prefix"
:
"/home/vagrant/code/ic_server_welfare"
,
"ignore_check_pid"
:
false
},
"laravel"
:{
"root_path"
:
"/home/vagrant/code/ic_server_welfare"
,
"static_path"
:
"/home/vagrant/code/ic_server_welfare/public"
,
"cleaners"
:[],
"register_providers"
:[],
"destroy_controllers"
:{
"enable"
:
false
,
"excluded_list"
:[]},
"is_lumen"
:
true
,
"_SERVER"
:{
"LESSOPEN"
:
"| /usr/bin/lesspipe %s"
,
"MAIL"
:
"/var/mail/vagrant"
,
"USER"
:
"vagrant"
,
"SSH_CLIENT"
:
"10.0.2.2 50083 22"
,
"LANGUAGE"
:
"en_US:"
,
"SHLVL"
:
"1"
,
"HOME"
:
"/home/vagrant"
,
"OLDPWD"
:
"/home/vagrant"
,
"SSH_TTY"
:
"/dev/pts/0"
,
"LOGNAME"
:
"vagrant"
,
"_"
:
"/usr/bin/php"
,
"XDG_SESSION_ID"
:
"5"
,
"TERM"
:
"cygwin"
,
"RBENV_SHELL"
:
"bash"
,
"PATH"
:
"/home/vagrant/.composer/vendor/bin:/usr/local/go/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/vagrant/.dotnet/tools"
,
"S_COLORS"
:
"auto"
,
"XDG_RUNTIME_DIR"
:
"/run/user/1000"
,
"LANG"
:
"en_US.UTF-8"
,
"LS_COLORS"
:
"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
,
"SHELL"
:
"/bin/bash"
,
"LESSCLOSE"
:
"/usr/bin/lesspipe %s %s"
,
"LC_ALL"
:
"en_US.UTF-8"
,
"PWD"
:
"/home/vagrant/code/ic_server_welfare"
,
"SSH_CONNECTION"
:
"10.0.2.2 50083 10.0.2.15 22"
,
"XDG_DATA_DIRS"
:
"/usr/local/share:/usr/share:/var/lib/snapd/desktop"
,
"PHP_SELF"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"SCRIPT_NAME"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"SCRIPT_FILENAME"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"PATH_TRANSLATED"
:
"/home/vagrant/code/ic_server_welfare/artisan"
,
"DOCUMENT_ROOT"
:
""
,
"REQUEST_TIME_FLOAT"
:
1567080195.557147
,
"REQUEST_TIME"
:
1567080195
,
"argv"
:[
"/home/vagrant/code/ic_server_welfare/artisan"
,
"laravels"
,
"config"
,
"--daemonize"
],
"argc"
:
4
,
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
"0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt"
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"ic_welfare"
,
"DB_USERNAME"
:
"ic_welfare"
,
"DB_PASSWORD"
:
"ic_welfare#zsyM"
,
"DB_PREFIX"
:
"ic_"
,
"IC_DATA_DB_HOST_R"
:
"192.168.2.232"
,
"IC_DATA_DB_HOST_W"
:
"192.168.2.232"
,
"IC_DATA_DB_PORT"
:
"3306"
,
"IC_DATA_DB_DATABASE"
:
"ic_data"
,
"IC_DATA_DB_USERNAME"
:
"ic_data"
,
"IC_DATA_DB_PASSWORD"
:
"ic_data#zsyM"
,
"IC_DATA_DB_PREFIX"
:
"ic_"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"SYSTEM_CODE"
:
"09"
,
"SYSTEM_NAME"
:
"IC业务助手福利中心服务"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"61009"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.235"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"SHELL_VERBOSITY"
:
0
},
"_ENV"
:{
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
"0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt"
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"ic_welfare"
,
"DB_USERNAME"
:
"ic_welfare"
,
"DB_PASSWORD"
:
"ic_welfare#zsyM"
,
"DB_PREFIX"
:
"ic_"
,
"IC_DATA_DB_HOST_R"
:
"192.168.2.232"
,
"IC_DATA_DB_HOST_W"
:
"192.168.2.232"
,
"IC_DATA_DB_PORT"
:
"3306"
,
"IC_DATA_DB_DATABASE"
:
"ic_data"
,
"IC_DATA_DB_USERNAME"
:
"ic_data"
,
"IC_DATA_DB_PASSWORD"
:
"ic_data#zsyM"
,
"IC_DATA_DB_PREFIX"
:
"ic_"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"SYSTEM_CODE"
:
"09"
,
"SYSTEM_NAME"
:
"IC业务助手福利中心服务"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"61009"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.235"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"SHELL_VERBOSITY"
:
0
}}}
\ No newline at end of file
\ No newline at end of file
storage/laravels.pid
View file @
197aed22
16308
2364
\ No newline at end of file
\ No newline at end of file
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