Commit 41e201d9 by 冷斌

fix bug

parent f8379625
......@@ -864,19 +864,19 @@ class Model_Live extends PhalApi_Model_NotORM {
//主播 经验
$get_gift = !empty($set['get_gift']) ? $set['get_gift'] : 0;
$get_gift2 = !empty($set['get_gift2']) ? $set['get_gift2'] : 0;
$total3 = $total;
$total3 = $anthor_total;
if ($get_gift > 0) {
$get_gif3 = (int)($total / $get_gift);
$get_gif3 = (int)($anthor_total / $get_gift);
$total3 += ($get_gif3 * $get_gift2);
}
var_dump($anthor_total, $total3);
die;
/* 更新直播 魅力值 累计魅力值 */
$istouid =DI()->notorm->users
->where('id = ?', $liveuid)
->update( array('votes' => new NotORM_Literal("votes + {$anthor_total}"),'votestotal' => new NotORM_Literal("votestotal + {$total3}") ));
var_dump($istouid);
die;
if($anthor_total){
$insert_votes=[
'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