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
0457f203
Commit
0457f203
authored
Jun 27, 2024
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shangxian11
parent
7a673ae6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+0
-7
UserModel.class.php
app/Lib/Model/UserModel.class.php
+2
-2
jiang.html
app/Tpl/Vip/Index/jiang.html
+1
-1
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
0457f203
...
@@ -419,12 +419,6 @@ class IndexAction extends IdentityAction {
...
@@ -419,12 +419,6 @@ class IndexAction extends IdentityAction {
$userName
=
randUsername
(
'股神'
,
$mobile
);
$userName
=
randUsername
(
'股神'
,
$mobile
);
$password
=
$password
?
$password
:
'1Aa'
.
substr
(
md5
(
$userName
),
18
);
$password
=
$password
?
$password
:
'1Aa'
.
substr
(
md5
(
$userName
),
18
);
//检查用户输入的用户名是否存在
// $result = uc_user_checkname($userName);
// //用户名已存在
// if($result['status']==122){
// $this->ajaxReturn(array('status' => 0, 'info' => '该用户名已存在,请更换!'));
// }
$regData
=
[
'userName'
=>
$userName
,
'password'
=>
$password
,
'ip'
=>
get_client_ip
(),
$regData
=
[
'userName'
=>
$userName
,
'password'
=>
$password
,
'ip'
=>
get_client_ip
(),
'mobile'
=>
$mobile
,
'mobile_status'
=>
1
,
'psourse'
=>
'www'
,
'nick'
=>
$nick
];
'mobile'
=>
$mobile
,
'mobile_status'
=>
1
,
'psourse'
=>
'www'
,
'nick'
=>
$nick
];
$regData
[
'sourse'
]
=
$inviterId
?
'zcyaoqing'
:
'zcguanfang'
;
$regData
[
'sourse'
]
=
$inviterId
?
'zcyaoqing'
:
'zcguanfang'
;
...
@@ -477,7 +471,6 @@ class IndexAction extends IdentityAction {
...
@@ -477,7 +471,6 @@ class IndexAction extends IdentityAction {
$exist
=
M
(
'PktopUser'
)
->
where
(
array
(
'user_id'
=>
$userId
))
->
find
();
$exist
=
M
(
'PktopUser'
)
->
where
(
array
(
'user_id'
=>
$userId
))
->
find
();
if
(
empty
(
$exist
)){
if
(
empty
(
$exist
)){
$inviterId
=
$inviterId
?
$inviterId
:
cookie
(
'aid'
);
$inviterId
=
$inviterId
?
$inviterId
:
cookie
(
'aid'
);
$inviterId
=
$inviterId
?
$inviterId
:
5420972
;
$userData
=
array
(
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'inviter_id'
=>
$inviterId
,
$userData
=
array
(
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'inviter_id'
=>
$inviterId
,
'referer'
=>
$referer
,
'add_time'
=>
time
(),
'device'
=>
'pc'
);
'referer'
=>
$referer
,
'add_time'
=>
time
(),
'device'
=>
'pc'
);
M
(
'PktopUser'
)
->
add
(
$userData
);
M
(
'PktopUser'
)
->
add
(
$userData
);
...
...
app/Lib/Model/UserModel.class.php
View file @
0457f203
...
@@ -78,13 +78,13 @@ class UserModel extends Model{
...
@@ -78,13 +78,13 @@ class UserModel extends Model{
$ucDataA
=
$ucA
[
'data'
];
$ucDataA
=
$ucA
[
'data'
];
$userNameA
=
$ucDataA
[
'user_name'
];
$userNameA
=
$ucDataA
[
'user_name'
];
//检查被邀请人是否被邀请过
//检查被邀请人是否被邀请过
$oldB
=
M
(
'WalletInvite'
)
->
where
([
'user_id_b'
=>
$userIdB
,
'status'
=>
1
])
->
count
();
$oldB
=
M
(
'WalletInvite'
)
->
where
([
'user_id_b'
=>
$userIdB
,
'status'
=>
1
,
'group_id'
=>
PRIZE_GROUP_2021
])
->
count
();
if
(
$oldB
){
if
(
$oldB
){
//-1不显示在界面上
//-1不显示在界面上
M
(
'WalletInvite'
)
->
add
([
'user_id_a'
=>
$aid
,
'user_name_a'
=>
$userNameA
,
'user_id_b'
=>
$userIdB
,
M
(
'WalletInvite'
)
->
add
([
'user_id_a'
=>
$aid
,
'user_name_a'
=>
$userNameA
,
'user_id_b'
=>
$userIdB
,
'user_name_b'
=>
$userNameB
,
'status'
=>-
1
,
'add_time'
=>
time
(),
'group_id'
=>
PRIZE_GROUP_2021
]);
'user_name_b'
=>
$userNameB
,
'status'
=>-
1
,
'add_time'
=>
time
(),
'group_id'
=>
PRIZE_GROUP_2021
]);
}
else
{
}
else
{
M
(
'WalletInvite'
)
->
where
([
'user_id_b'
=>
$userIdB
,
'status'
=>
0
])
->
delete
();
M
(
'WalletInvite'
)
->
where
([
'user_id_b'
=>
$userIdB
,
'status'
=>
0
,
'group_id'
=>
PRIZE_GROUP_2021
])
->
delete
();
//status0报名未审核,1审核通过已报名状态
//status0报名未审核,1审核通过已报名状态
M
(
'WalletInvite'
)
->
add
([
'user_id_a'
=>
$aid
,
'user_name_a'
=>
$userNameA
,
'user_id_b'
=>
$userIdB
,
M
(
'WalletInvite'
)
->
add
([
'user_id_a'
=>
$aid
,
'user_name_a'
=>
$userNameA
,
'user_id_b'
=>
$userIdB
,
...
...
app/Tpl/Vip/Index/jiang.html
View file @
0457f203
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<eq
name=
"dsStatus.spStatus"
value=
"1"
>
<eq
name=
"dsStatus.spStatus"
value=
"1"
>
<div
class=
"enter-btn goTradeBtn1"
url=
"{:M_URL}/True"
>
上传账户截图
</div>
<div
class=
"enter-btn goTradeBtn1"
url=
"{:M_URL}/True"
>
上传账户截图
</div>
<else/>
<else/>
<div
class=
"enter-btn baoming"
url=
"{:M_URL}/True?
clickFlag=1
"
>
免费报名
</div>
<div
class=
"enter-btn baoming"
url=
"{:M_URL}/True?
aid={$Think.cookie.aid|default=5420972}
"
>
免费报名
</div>
</eq>
</eq>
</div>
</div>
</div>
</div>
...
...
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