Commit a69535c2 by 冷斌

fix bug

parent 256795e4
......@@ -542,8 +542,6 @@ class Model_Live extends PhalApi_Model_NotORM {
->select("type,mark,giftname,gifticon,needcoin,swftype,swf,swftime,votes")
->where('id=?',$gift['giftid'])
->fetchOne();
var_dump($giftinfo);
die;
if(!$giftinfo){
/* 礼物信息不存在 */
return [];
......@@ -601,9 +599,7 @@ class Model_Live extends PhalApi_Model_NotORM {
/* 分销 */
/* 家族分成之后的金额 */
setFamilyDivide($liveuid,$total);
$anthor_total = $giftinfo['votes'];
var_dump($anthor_total);
die;
$anthor_total = $randomGift['votes'];
//主播 经验
$get_gift = !empty($set['get_gift']) ? $set['get_gift'] : 0;
$get_gift2 = !empty($set['get_gift2']) ? $set['get_gift2'] : 0;
......
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