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
27c3bee6
Commit
27c3bee6
authored
Apr 24, 2024
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改文案
parent
b6c74018
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+3
-2
GroupModel.class.php
app/Lib/Model/GroupModel.class.php
+2
-2
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
27c3bee6
...
...
@@ -466,7 +466,8 @@ class IndexAction extends IdentityAction {
}
//加入大赛
// echo $ucData['user_id'];exit;
$joinRes
=
D
(
'Group'
)
->
uc_join_group
([
'userId'
=>
$ucData
[
'user_id'
],
'userName'
=>
$ucData
[
'user_name'
],
'groupId'
=>
$groupId
,
'grade'
=>
0
,
'teamId'
=>
$groupId
]);
$joinRes
=
D
(
'Group'
)
->
uc_join_group
([
'userId'
=>
$ucData
[
'user_id'
],
'userName'
=>
$ucData
[
'user_name'
],
'groupId'
=>
$groupId
,
'grade'
=>
0
,
'teamId'
=>
$groupId
]);
//钱包
$userId
=
$ucData
[
'user_id'
];
...
...
@@ -497,7 +498,7 @@ class IndexAction extends IdentityAction {
if
(
$mobile
&&
$joinRes
[
'canLogin'
]){
$this
->
ajaxReturn
([
'status'
=>
1
,
'canLogin'
=>
1
]);
}
else
{
$this
->
ajaxReturn
(
array
(
'status'
=>
0
,
'info'
=>
$joinRes
[
'error'
],
'joinStatus'
=>
$joinRes
[
'joinStatus'
])
);
$this
->
ajaxReturn
(
[
'status'
=>
0
,
'info'
=>
$joinRes
[
'error'
],
'joinStatus'
=>
$joinRes
[
'joinStatus'
],
'debug'
=>
$joinRes
[
'debug'
]]
);
}
}
...
...
app/Lib/Model/GroupModel.class.php
View file @
27c3bee6
...
...
@@ -274,11 +274,11 @@ class GroupModel extends Model{
$teamid
=
$input
[
'teamId'
]
?
$input
[
'teamId'
]
:
$group_id
;
if
(
empty
(
$user_id
)
||
empty
(
$user_name
)){
return
array
(
'status'
=>
1
,
'error'
=>
'参数错误'
)
;
return
[
'status'
=>
1
,
'error'
=>
'参数错误'
,
'debug'
=>
'用户id或用户名是空'
]
;
}
$group
=
M
(
'Group'
)
->
where
(
array
(
'group_id'
=>
$group_id
))
->
find
();
if
(
empty
(
$group
)){
return
array
(
'status'
=>
1
,
'error'
=>
'参数错误'
)
;
return
[
'status'
=>
1
,
'error'
=>
'参数错误'
,
'debug'
=>
'大赛id是空'
]
;
}
//参加的未开赛和正在进行中的大赛如果超过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