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
1854e1dc
authored
Oct 10, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改备注
parent
febf2bef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Http/Controllers/UserExchangesController.php
app/Http/Controllers/UserExchangesController.php
View file @
1854e1dc
...
...
@@ -157,7 +157,7 @@ class UserExchangesController extends Controller
if
(
!
$Cahce
)
{
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'
]);
...
...
@@ -199,7 +199,7 @@ class UserExchangesController extends Controller
$Redis
->
hset
(
'ic_user'
,
$UserInfo
[
'user_id'
],
json_encode
(
$UserInfo
));
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
//同时还要是type=1(话费充值)的时候,才会去进行兑现,因为
目前微信还不能够直接走兑现任务
//同时还要是type=1(话费充值)的时候,才会去进行兑现,因为
微信需要好友助力
if
(
$data
[
'amount'
]
<
20
&&
$data
[
'type'
]
==
1
)
{
$Task
=
new
ExchangesTask
(
$data
,
$ic_exchange_settings
);
$Task
->
delay
(
10
);
...
...
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