Commit 3938254f by 冷斌

update

parent 6dea54e5
......@@ -843,9 +843,9 @@ class Model_Live extends PhalApi_Model_NotORM {
if($ifluck ==1 ){
$luckrate=rand(1,100000);
//file_put_contents('./zhifu.txt',date('Y-m-d H:i:s').' 提交参数信息 luckrate:'.json_encode($luckrate)."\r\n",FILE_APPEND);
$rate=0;
// $rate=0;
foreach($rateinfo as $k=>$v){
$rate+=floor($v['rate']*1000);
$rate=floor($v['rate']*1000);
//file_put_contents('./zhifu.txt',date('Y-m-d H:i:s').' 提交参数信息 rate:'.json_encode($rate)."\r\n",FILE_APPEND);
if($luckrate <= $rate){
/* 中奖 */
......
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