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
8682c4ac
authored
Sep 30, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加助力判断
parent
bea54d4d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
app/Http/Controllers/AssistsController.php
storage/laravels.json
storage/laravels.pid
app/Http/Controllers/AssistsController.php
View file @
8682c4ac
...
...
@@ -51,6 +51,11 @@ class AssistsController extends Controller
$assistUserId
=
$request
->
get
(
'assist_user_id'
);
$exchange
=
$userExchange
->
getUserExchange
(
$exchangeId
);
$userId
=
array_get
((
array
)
$exchange
,
'user_id'
);
$type
=
array_get
((
array
)
$exchange
,
'type'
);
//如果类型是兑换话费,就不应该进入这个助力逻辑
if
(
$type
==
1
)
{
return
$this
->
Export
(
ErrorCode
(
16
,
1
),
'只有微信转账才能进行助力'
);
}
$data
=
[
'user_id'
=>
$userId
,
'assist_user_id'
=>
$assistUserId
,
...
...
@@ -70,6 +75,7 @@ class AssistsController extends Controller
if
(
$result
)
{
//好友助力成功一次就要向用户添加一条站内信
$assist
->
sendNotice
(
$data
[
'user_id'
]);
return
$this
->
Export
(
0
,
'ok'
);
}
else
{
return
$this
->
Export
(
ErrorCode
(
20
,
5
),
'新增好友助力记录失败'
);
...
...
storage/laravels.json
View file @
8682c4ac
This diff is collapsed.
Click to expand it.
storage/laravels.pid
View file @
8682c4ac
3887
\ No newline at end of file
2310
\ 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