Commit b9d082a0 by 冷斌

fix bug

parent 8d048be1
......@@ -851,6 +851,7 @@ class Model_Live extends PhalApi_Model_NotORM {
$anthor_total=$total;
var_dump('init: ' . $anthor_total);
/* 幸运礼物分成 */
if($giftinfo['type']==0 && $giftinfo['mark']==3){
$jackpotset=getJackpotSet();
......@@ -858,7 +859,9 @@ class Model_Live extends PhalApi_Model_NotORM {
$anthor_total=floor($anthor_total*$jackpotset['luck_anchor']*0.01);
}
/* 幸运礼物分成 */
var_dump('out: ' . $anthor_total);
var_dump($giftinfo);
die;
/* 家族分成之后的金额 */
$anthor_total=setFamilyDivide($liveuid,$anthor_total);
//主播 经验
......
......@@ -1307,7 +1307,6 @@
$configpri=getConfigPri();
$anthor_total=$total;
var_dump('init: ' . $anthor_total);
/* 家族 */
if($configpri['family_switch']==1){
$users_family=DI()->notorm->users_family
......@@ -1320,7 +1319,6 @@
->select("uid,divide_family")
->where('id=?',$users_family['familyid'])
->fetchOne();
var_dump($familyinfo);
if($familyinfo){
$divide_family=$familyinfo['divide_family'];
......@@ -1355,8 +1353,6 @@
}
}
}
var_dump('out: ' . $anthor_total);
die;
return $anthor_total;
}
......
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