Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
32efbcec
Commit
32efbcec
authored
Apr 14, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
763da8ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
api/Appapi/Model/Live.php
+20
-20
No files found.
api/Appapi/Model/Live.php
View file @
32efbcec
...
@@ -981,26 +981,26 @@ class Model_Live extends PhalApi_Model_NotORM {
...
@@ -981,26 +981,26 @@ class Model_Live extends PhalApi_Model_NotORM {
);
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
$luckcoin2
=
(
int
)(
$luckcoin
*
0.05
*
100
);
//
$luckcoin2 = (int)($luckcoin*0.05 * 100);
$luckcoin3
=
$luckcoin2
/
100
;
//
$luckcoin3 = $luckcoin2 / 100;
if
(
$luckcoin3
>
0
)
{
//
if ($luckcoin3 > 0) {
DI
()
->
notorm
->
users
//
DI()->notorm->users
->
where
(
'id = ?'
,
$liveuid
)
//
->where('id = ?', $liveuid)
->
update
(
array
(
'votes'
=>
new
NotORM_Literal
(
"votes +
{
$luckcoin3
}
"
),
'votestotal'
=>
new
NotORM_Literal
(
"votestotal +
{
$luckcoin3
}
"
)
));
//
->update( array('votes' => new NotORM_Literal("votes + {$luckcoin3}"),'votestotal' => new NotORM_Literal("votestotal + {$luckcoin3}") ));
$insert
=
array
(
//
$insert=array(
"type"
=>
'income'
,
//
"type"=>'income',
"action"
=>
'luckgift'
,
//
"action"=>'luckgift',
"uid"
=>
$liveuid
,
//
"uid"=>$liveuid,
"touid"
=>
$liveuid
,
//
"touid"=>$liveuid,
"giftid"
=>
$giftid
,
//
"giftid"=>$giftid,
"giftcount"
=>
$lucktimes
,
//
"giftcount"=>$lucktimes,
"totalcoin"
=>
$luckcoin
,
//
"totalcoin"=>$luckcoin,
"showid"
=>
$showid
,
//
"showid"=>$showid,
"mark"
=>
$giftinfo
[
'mark'
],
//
"mark"=>$giftinfo['mark'],
"addtime"
=>
$addtime
//
"addtime"=>$addtime
);
//
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
//
DI()->notorm->users_coinrecord->insert($insert);
}
//
}
break
;
break
;
}
else
{
}
else
{
$rateSum
-=
$ratePre
;
$rateSum
-=
$ratePre
;
...
...
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