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
068a2a29
authored
Oct 11, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-ic助手服务开发-20190824'
parents
5c1e35e0
04cae2eb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
app/Models/UserExchange.php
app/Tasks/IntegralBillTask.php
storage/laravels.json
storage/laravels.pid
app/Models/UserExchange.php
View file @
068a2a29
...
...
@@ -98,7 +98,7 @@ class UserExchange extends Model
}
}
//无论是审核通过还是拒绝都要去通知用户
$this
->
sendNotice
(
$
data
[
'user_id'
],
$data
[
'status'
],
$data
[
'audit_reason'
]);
$this
->
sendNotice
(
$
exchange
[
'user_id'
],
$data
[
'status'
],
$data
[
'audit_reason'
]);
return
true
;
});
...
...
app/Tasks/IntegralBillTask.php
View file @
068a2a29
...
...
@@ -62,14 +62,16 @@ class IntegralBillTask extends Task
if
(
!
$result
)
{
throw
new
\Exception
(
"初始化用户红包详情失败,用户id是
$userId
"
);
}
}
//判断是否能增加红包金额,如果不能直接返回成功
if
(
$data
[
'status'
]
!=
1
)
{
return
false
;
}
else
{
//判断是否能增加红包金额,如果不能直接返回成功
if
(
$data
[
'status'
]
!=
1
)
{
return
true
;
}
}
//将用户的累计可兑换金额写进redis里面的ic_user里面去
$redis
=
new
RedisModel
();
$user
=
json_decode
(
$redis
->
hget
(
'ic_user'
,
$userId
),
true
);
$data
=
(
array
)
$userIntegral
->
getUserIntegral
(
$userId
);
$user
[
'integral'
]
=
number_format
(
$data
[
'integral'
]
+
$amount
,
2
);
$result
=
$redis
->
hset
(
'ic_user'
,
$userId
,
json_encode
(
$user
));
//还要写进user_integrals数据库
...
...
storage/laravels.json
View file @
068a2a29
This diff is collapsed.
Click to expand it.
storage/laravels.pid
View file @
068a2a29
23592
\ No newline at end of file
2930
\ 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