bobing_901_4
This commit is contained in:
+15
-14
@@ -28,7 +28,9 @@ class Bo extends Base
|
||||
public function kz_bo()
|
||||
{
|
||||
if ($this->valid_nums <= 0) {
|
||||
return array('status' => 1, 'title' => '邀请好友', 'content' => '<div>您的博饼次数已用完啦</div><div>立即邀请好友助力博饼,</div><div>冲刺购物卡、苹果手机、汽车大奖</div>');
|
||||
$content = '<div>您的博饼次数已用完啦</div><div>立即邀请好友助力博饼,</div><div>冲刺购物卡、苹果手机、汽车大奖</div>';
|
||||
$popup = array('title' => '邀请好友', 'content' => $content, 'btn' => array('title' => '立即邀请', 'url' => '/bobing/pages/game/invite/index'));
|
||||
return array('status' => 1, 'popup' => $popup);
|
||||
}
|
||||
$mc = &load_cache();
|
||||
$key = 'LiChe_bobing_' . $this->act_key . $this->app_id . $this->uid;
|
||||
@@ -52,7 +54,7 @@ class Bo extends Base
|
||||
$data['ua'] = $_SERVER['HTTP_USER_AGENT'];
|
||||
$data['type'] = 0;
|
||||
$data['c_time'] = time();
|
||||
$content = $title = '';
|
||||
$popup = '';
|
||||
$re_u = $this->ci->bobing_user_model->get(array('app_id' => $data['app_id'], 'act_key' => $data['act_key'], 'uid' => $this->uid));
|
||||
if ($re_u['car_gold'] < $this->appConfig['max_car_gold']) {//购车金小于购车金设定值
|
||||
if ($this->appConfig['ratio_car_gold'] && $this->appConfig['ratio_car_gold'] >= rand(1, 100)) {//购车金概率
|
||||
@@ -61,8 +63,8 @@ class Bo extends Base
|
||||
$car_gold = $this->appConfig['max_car_gold'] - $re_u['car_gold'];
|
||||
}
|
||||
$data['car_gold'] = $car_gold;
|
||||
$content = '您博到购车金' . $car_gold . '元';
|
||||
$title = '恭喜您';
|
||||
$content = '恭喜您,博到' . $car_gold . '元购车金,您已累计博得' . ($re_u['car_gold'] + $car_gold) . '元购车金';
|
||||
$popup = array('title' => '恭喜您', 'content' => $content, 'btn' => array('title' => '立即使用购车金', 'url' => '/pages/buyCar/detail/index?id=13'));
|
||||
}
|
||||
}
|
||||
$re_l = $this->add_log($data);
|
||||
@@ -72,8 +74,7 @@ class Bo extends Base
|
||||
$data['level_name'] = $this->ci->dice->getResultName();
|
||||
$data['status'] = 0;
|
||||
$data['lid'] = $re_l['lid'];
|
||||
$data['title'] = $title;
|
||||
$data['content'] = $content;
|
||||
$data['popup'] = $popup;
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -90,7 +91,9 @@ class Bo extends Base
|
||||
if ($this->valid_nums <= 0) {
|
||||
$re_u = $this->ci->bobing_user_model->get(array('app_id' => $data['app_id'], 'act_key' => $data['act_key'], 'uid' => $this->uid));
|
||||
$credit = intval($re_u['credit']);
|
||||
return array('status' => 2, 'title' => '立即开桌', 'content' => '<div>您已获得' . $credit . '积分,</div><div>立即开桌获得更多幸运分,</div><div>冲刺购物卡、苹果手机、汽车大奖</div>');
|
||||
$content = '<div>您已获得' . $credit . '积分,</div><div>立即开桌获得更多幸运分,</div><div>冲刺购物卡、苹果手机、汽车大奖</div>';
|
||||
$popup = array('title' => '开桌', 'content' => $content, 'btn' => array('title' => '立即开桌', 'url' => '/bobing/pages/game/index'));
|
||||
return array('status' => 2, 'popup' => $popup);
|
||||
}
|
||||
$mc = &load_cache();
|
||||
$key = 'LiChe_bobing_' . $this->act_key . $this->app_id . $this->uid;
|
||||
@@ -113,7 +116,7 @@ class Bo extends Base
|
||||
$data['ip'] = get_client_ip();
|
||||
$data['ua'] = $_SERVER['HTTP_USER_AGENT'];
|
||||
$data['type'] = 1;
|
||||
$content = $title = '';
|
||||
$popup = '';
|
||||
$re_u = $this->ci->bobing_user_model->get(array('app_id' => $data['app_id'], 'act_key' => $data['act_key'], 'uid' => $data['uid']));
|
||||
if ($re_u['car_gold'] < $this->appConfig['max_car_gold']) {//购车金小于购车金设定值
|
||||
if ($this->appConfig['ratio_car_gold'] && $this->appConfig['ratio_car_gold'] >= rand(1, 100)) {//购车金概率
|
||||
@@ -122,8 +125,9 @@ class Bo extends Base
|
||||
$car_gold = $this->appConfig['max_car_gold'] - $re_u['car_gold'];
|
||||
}
|
||||
$data['car_gold'] = $car_gold;
|
||||
$content = '为桌长博到购车金' . $car_gold . '元';
|
||||
$title = '恭喜您';
|
||||
$content = '<div>恭喜您</div><div>帮助好友博到博到' . $car_gold . '元购车金和' . $data['credit'] . '幸运分,</div><div>您的好友离汽车大奖更进一步了!</div>';
|
||||
$popup = array('title' => '恭喜您', 'content' => $content, 'btn' => array('title' => '我也要开桌博取汽车大奖'
|
||||
, 'url' => '/bobing/pages/game/index'));
|
||||
}
|
||||
}
|
||||
$hong_bao_day = $this->ci->bobing_user_model->hongBaoDay($data['act_key']);
|
||||
@@ -135,8 +139,6 @@ class Bo extends Base
|
||||
$hong_bao = '0.3'; //'0.' . rand(30, 68);//0.30到0.68红包
|
||||
$data['hong_bao'] = $hong_bao;
|
||||
$data['status'] = 1;
|
||||
$content = '您博到现金红包' . $data['hong_bao'] . '元';
|
||||
$title = '恭喜您';
|
||||
$this->ci->bobing_user_model->hongBaoDay($data['act_key'], $hong_bao);
|
||||
}
|
||||
}
|
||||
@@ -148,8 +150,7 @@ class Bo extends Base
|
||||
$data['level_name'] = $this->ci->dice->getResultName();
|
||||
$data['status'] = 0;
|
||||
$data['lid'] = $log['lid'];
|
||||
$data['title'] = $title;
|
||||
$data['content'] = $content;
|
||||
$data['popup'] = $popup;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user