Commit 8ccc412b by 冷斌

update

parent 23f874de
......@@ -814,7 +814,7 @@ class Model_Live extends PhalApi_Model_NotORM {
return 1002;
}
$total= $giftinfo['needcoin']*$giftcount;
$totalcoin = $total= $giftinfo['needcoin']*$giftcount;
$addtime=time();
$type='expend';
......@@ -891,7 +891,7 @@ class Model_Live extends PhalApi_Model_NotORM {
$stream2=explode('_',$stream);
$showid=$stream2[1];
$insert=array("type"=>$type,"action"=>$action,"uid"=>$uid,"touid"=>$liveuid,"giftid"=>$giftid,"giftcount"=>$giftcount,"totalcoin"=>$total,"showid"=>$showid,"mark"=>$giftinfo['mark'],"addtime"=>$addtime );
$insert=array("type"=>$type,"action"=>$action,"uid"=>$uid,"touid"=>$liveuid,"giftid"=>$giftid,"giftcount"=>$giftcount,"totalcoin"=>$totalcoin,"showid"=>$showid,"mark"=>$giftinfo['mark'],"addtime"=>$addtime );
DI()->notorm->users_coinrecord->insert($insert);
......
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