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
6e0f8feb
authored
Sep 26, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-ic助手服务开发-20190824'
parents
0fa0e75c
7decbc26
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
.env
app/Http/Controllers/UserExchangesController.php
app/Models/Code.php
storage/laravels.json
storage/laravels.pid
.env
View file @
6e0f8feb
...
...
@@ -4,6 +4,7 @@ APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt
APP_TIMEZONE=PRC
DB_CONNECTION=mysql
#DB_HOST=192.168.2.232
DB_HOST_R=192.168.2.232
DB_HOST_W=192.168.2.232
DB_PORT=3306
...
...
app/Http/Controllers/UserExchangesController.php
View file @
6e0f8feb
...
...
@@ -200,7 +200,7 @@ class UserExchangesController extends Controller
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
//同时还要是type=1(话费充值)的时候,才会去进行兑现,因为目前微信还不能够直接走兑现任务
if
(
$data
[
'amount'
]
<
20
||
$data
[
'type'
]
==
1
)
{
if
(
$data
[
'amount'
]
<
20
&&
$data
[
'type'
]
==
1
)
{
$Task
=
new
ExchangesTask
(
$data
,
$ic_exchange_settings
);
$Task
->
delay
(
10
);
$result
=
Task
::
deliver
(
$Task
);
...
...
app/Models/Code.php
View file @
6e0f8feb
...
...
@@ -116,7 +116,7 @@ class Code extends Model
if
(
!
$result
)
{
return
false
;
}
else
{
$codeUserId
=
substr
(
$code
,
2
);
$codeUserId
=
substr
(
$code
,
3
);
//两方都会添加红包,所以要走第二次流水
$data
[
'user_id'
]
=
$codeUserId
;
//传入code的拥有者即可对他的流水进行添加
...
...
storage/laravels.json
View file @
6e0f8feb
This diff is collapsed.
Click to expand it.
storage/laravels.pid
View file @
6e0f8feb
26901
\ No newline at end of file
2170
\ 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