Commit b59f3f44 by 冷斌

fix bug

parent d5b4d40c
......@@ -121,7 +121,7 @@ class Model_Guard extends PhalApi_Model_NotORM {
return $rs;
}
$total = $total * 0.7;
/* 分销 */
setAgentProfit($uid,$total);
......@@ -148,8 +148,8 @@ class Model_Guard extends PhalApi_Model_NotORM {
}
}
$total = $total * 0.7;
$insert=array("type"=>$type,"action"=>$action,"uid"=>$uid,"touid"=>$liveuid,"giftid"=>$giftid,"giftcount"=>'1',"totalcoin"=>$total,"showid"=>$showid,"addtime"=>$addtime );
$insert=array("totalcoin2"=>$total,"type"=>$type,"action"=>$action,"uid"=>$uid,"touid"=>$liveuid,"giftid"=>$giftid,"giftcount"=>'1',"totalcoin"=>$total,"showid"=>$showid,"addtime"=>$addtime );
DI()->notorm->users_coinrecord->insert($insert);
$endtime=$addtime + $guardinfo['length_time'];
......
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