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
b6b6dc2b
Commit
b6b6dc2b
authored
Jun 15, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实盘pc修改
parent
b16b1a70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+13
-3
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+8
-4
jiang.html
app/Tpl/Vip/Index/jiang.html
+6
-6
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
b6b6dc2b
...
...
@@ -465,14 +465,20 @@ class IndexAction extends IdentityAction {
$joinRes
=
D
(
'Group'
)
->
uc_join_group
([
'userId'
=>
$ucData
[
'user_id'
],
'userName'
=>
$ucData
[
'user_name'
],
'groupId'
=>
$groupId
,
'grade'
=>
0
,
'teamId'
=>
$groupId
]);
//钱包
$wallet
=
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$ucData
[
'user_id'
]])
->
find
();
$userId
=
$ucData
[
'user_id'
];
$wallet
=
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
if
(
empty
(
$wallet
)){
M
(
'Wallet'
)
->
add
([
'user_id'
=>
$ucData
[
'user_id'
],
'user_name'
=>
$ucData
[
'user_name'
],
'add_time'
=>
time
()]);
M
(
'Wallet'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'add_time'
=>
time
(),
'money'
=>
1
]);
}
else
{
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
setInc
(
'money'
);
}
$addData
=
[
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'mobile'
=>
$mobile
,
'item_money'
=>
1
,
'item_time'
=>
time
(),
'group_id'
=>
$groupId
,
'status'
=>
1
,
'note'
=>
'报名成功'
];
M
(
'WalletItem'
)
->
add
(
$addData
);
//用户未加入大赛或已加入,但不在cofool_allex_user表,需要添加
if
(
$joinRes
[
'status'
]
==
0
||
$joinRes
[
'joinStatus'
]
==
1
){
$userId
=
$ucData
[
'user_id'
];
$exist
=
M
(
'PktopUser'
)
->
where
(
array
(
'user_id'
=>
$userId
))
->
find
();
if
(
empty
(
$exist
)){
$userData
=
array
(
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'inviter_id'
=>
$inviterId
,
...
...
@@ -1255,6 +1261,10 @@ class IndexAction extends IdentityAction {
$dsStatus
[
'zjStartTime'
]
=
date
(
'Y-m-d'
,
$group
[
'startTime'
]);
$dsStatus
[
'zjEndTime'
]
=
$group
[
'endTime'
]
?
date
(
'Y-m-d'
,
$group
[
'endTime'
])
:
'长期'
;
//实盘大赛
$spData
=
M
(
'FirmOfferMatch'
)
->
where
([
'fo_user_id'
=>
$userId
,
'fo_user_status'
=>
1
])
->
count
();
$dsStatus
[
'spStatus'
]
=
$spData
?
1
:
0
;
//炼股赛
$dsStatus
[
'qmStatus'
]
=
in_array
(
PRIZE_GROUP_2021
,
$ids
)
?
1
:
0
;
$group
=
D
(
'Group'
)
->
getGroup
(
PRIZE_GROUP_2021
);
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
b6b6dc2b
...
...
@@ -620,7 +620,7 @@ class PkTopAction extends IdentityAction{
if
(
!
empty
(
$row
)){
M
(
'userinfo'
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
array
(
'uid'
=>
$uid
))
->
data
(
array
(
'zt'
=>
1
))
->
save
();
}
else
{
$initData
=
array
(
'stock_balance'
=>
0
,
'all_cjl'
=>
0
,
'new_phb'
=>
0
,
'old_phb'
=>
0
,
'zt'
=>
1
,
'XinyongED'
=>
6
)
;
$initData
=
[
'stock_balance'
=>
0
,
'all_cjl'
=>
0
,
'new_phb'
=>
0
,
'old_phb'
=>
0
,
'zt'
=>
1
,
'XinyongED'
=>
6
]
;
$initData
[
'uid'
]
=
$uid
;
$initData
[
'username'
]
=
$userName
;
$initData
[
'balance'
]
=
$initData
[
'frozen_balance'
]
=
$initData
[
'all_balance'
]
=
$group
[
'capital'
];
...
...
@@ -634,11 +634,15 @@ class PkTopAction extends IdentityAction{
//钱包
$wallet
=
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
if
(
empty
(
$wallet
)){
M
(
'Wallet'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'add_time'
=>
time
()]);
M
(
'Wallet'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'add_time'
=>
time
(),
'money'
=>
1
]);
}
else
{
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
setInc
(
'money'
);
}
$addData
=
[
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'mobile'
=>
$mobile
,
'item_money'
=>
1
,
'item_time'
=>
time
(),
'group_id'
=>
$groupId
,
'status'
=>
1
,
'note'
=>
'报名成功'
];
M
(
'WalletItem'
)
->
add
(
$addData
);
return
array
(
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
);
return
[
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
];
}
...
...
app/Tpl/Vip/Index/jiang.html
View file @
b6b6dc2b
...
...
@@ -74,10 +74,10 @@
<div
class=
"side-top"
><p
class=
"num"
>
10000元
</p><p
class=
"des"
>
奖金
</p></div>
<div
class=
"side-bot jia"
>
<p
class=
"bot-tit"
>
实盘赛场
</p>
<eq
name=
"dsStatus.
zj
Status"
value=
"1"
>
<eq
name=
"dsStatus.
sp
Status"
value=
"1"
>
<span
class=
"bot-btn"
>
已报名
</span>
<else/>
<a
href=
"#
1
"
><span
class=
"bot-btn no"
>
未报名
</span></a>
<a
href=
"#
4
"
><span
class=
"bot-btn no"
>
未报名
</span></a>
</eq>
</div>
...
...
@@ -123,10 +123,10 @@
</div>
<div
class=
"item-cont-r"
>
<p
class=
"num"
>
10000元
</p><p
class=
"num-sub"
>
本月奖金池
</p>
<eq
name=
"dsStatus.
qm
Status"
value=
"1"
>
<div
class=
"enter-btn"
url=
"
/Index/saicheng?clickFlag=1
"
>
上传账户截图
</div>
<eq
name=
"dsStatus.
sp
Status"
value=
"1"
>
<div
class=
"enter-btn"
url=
"
{:M_URL}/True
"
>
上传账户截图
</div>
<else/>
<div
class=
"enter-btn baoming"
url=
"
/Index/saicheng
?clickFlag=1"
>
报名参赛
</div>
<div
class=
"enter-btn baoming"
url=
"
{:M_URL}/True
?clickFlag=1"
>
报名参赛
</div>
</eq>
</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