Commit a5a30b6f by 冷斌

fix bug

parent 7260ff50
...@@ -869,12 +869,12 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -869,12 +869,12 @@ class Model_Live extends PhalApi_Model_NotORM {
$get_gif3 = (int)($anthor_total / $get_gift); $get_gif3 = (int)($anthor_total / $get_gift);
$total3 += ($get_gif3 * $get_gift2); $total3 += ($get_gif3 * $get_gift2);
} }
echo 1; die;
/* 更新直播 魅力值 累计魅力值 */ /* 更新直播 魅力值 累计魅力值 */
$istouid =DI()->notorm->users $istouid =DI()->notorm->users
->where('id = ?', $liveuid) ->where('id = ?', $liveuid)
->update( array('votes' => new NotORM_Literal("votes + {$anthor_total}"),'votestotal' => new NotORM_Literal("votestotal + {$total3}") )); ->update( array('votes' => new NotORM_Literal("votes + {$anthor_total}"),'votestotal' => new NotORM_Literal("votestotal + {$total3}") ));
echo 1; die;
if($anthor_total){ if($anthor_total){
$insert_votes=[ $insert_votes=[
'type'=>'income', 'type'=>'income',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment