Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
87a7d54b
Commit
87a7d54b
authored
Jan 19, 2024
by
蒋政义
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复参赛bug
parent
bbdcf32d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+2
-2
CofCoinModel.class.php
app/Lib/Model/CofCoinModel.class.php
+8
-0
bottom.html
app/Tpl/Vip/PkTop/bottom.html
+9
-1
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
87a7d54b
...
...
@@ -629,11 +629,11 @@ class PkTopAction extends IdentityAction{
D
(
'Sms'
)
->
send
([
'mobile'
=>
$mobile
,
'content'
=>
$bmContent
,
'type'
=>
46
],
true
,
true
);
#富币任务-全民邀请参赛
D
(
'CofCoin'
)
->
addMoneyForQmJoin
(
$userId
,
cookie
(
'aid'
));
$result
=
D
(
'CofCoin'
)
->
addMoneyForQmJoin
(
$userId
,
cookie
(
'aid'
));
if
(
cookie
(
'aid'
)){
cookie
(
'aid'
,
null
);
}
return
[
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
];
return
[
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
,
'is_coin'
=>
$result
];
}
...
...
app/Lib/Model/CofCoinModel.class.php
View file @
87a7d54b
...
...
@@ -35,6 +35,10 @@ class CofCoinModel extends Model
return
false
;
}
$share_user_info
=
$share_user_info
[
'data'
];
$is_exists
=
M
(
'CoinDetail'
)
->
field
(
'id'
)
->
where
([
'user_id'
=>
$share_user_info
[
'user_id'
],
'tid'
=>
$user_id
,
'type_id'
=>
self
::
TYPE_INVITA_QM
])
->
find
();
if
(
$is_exists
)
{
return
false
;
}
$my_coin
=
M
(
'CoinUser'
)
->
where
([
'user_id'
=>
$share_user_info
[
'user_id'
]])
->
getField
(
'coin'
);
if
(
$my_coin
===
null
)
{
M
(
'CoinUser'
)
->
add
([
'user_id'
=>
$share_user_info
[
'user_id'
],
'coin'
=>
0
,
'add_time'
=>
time
()]);
...
...
@@ -70,6 +74,10 @@ class CofCoinModel extends Model
if
(
empty
(
$type_info
)){
return
false
;
}
$is_exists
=
M
(
'CoinDetail'
)
->
field
(
'id'
)
->
where
([
'user_id'
=>
$user_id
,
'type_id'
=>
self
::
TYPE_QM_ENTRY
])
->
find
();
if
(
$is_exists
)
{
return
false
;
}
#参赛人信息
$user_info
=
uc_get_user
([
'userId'
=>
$user_id
,
'type'
=>
3
]);
if
(
$user_info
[
'data'
][
'user_id'
]
!==
$user_id
){
...
...
app/Tpl/Vip/PkTop/bottom.html
View file @
87a7d54b
...
...
@@ -112,7 +112,15 @@
}
else
{
// animPop('#baomingPOP');
animPop
(
'#popPkTopSucc'
);
if
(
data
.
is_coin
==
1
)
{
animPop
(
'#popPkTopSucc'
);
}
else
{
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
window
.
location
.
reload
();
}});
}
}
});
}
...
...
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