diff --git a/api/controllers/wxapp/bobing/Home.php b/api/controllers/wxapp/bobing/Home.php
index 1e9e41c1..f9ee5f6a 100644
--- a/api/controllers/wxapp/bobing/Home.php
+++ b/api/controllers/wxapp/bobing/Home.php
@@ -310,6 +310,9 @@ class Home extends Wxapp
if ($re_u) {
$credit = $re_u['credit'];
$car_gold = $re_u['car_gold'] + $re_u['buy_car_gold'] + $re_u['lotter_gold'];
+ if ($re_u['buy_car_gold'] > 0) {
+ $tips = '
您已添加客服领取到' . $re_u['buy_car_gold'] . '元购车金
';
+ }
if ($credit) {
$where = array('app_id' => $this->appConfig['app_id'], 'act_key' => $this->appConfig['act_key']);
$re_u = $this->mdBobingUserCredit->select(array_merge($where, array('uid' => $this->myuid, 'lottery>' => 0)), 'lottery DESC', 0, 0, 'lottery');
@@ -318,14 +321,14 @@ class Home extends Wxapp
foreach ($re_u as $key => $value) {
$tipsAry[] = $this->mdBobingUser->lottery($value['lottery']);
}
- $tips = '您已中奖' . implode(',', $tipsAry) . '
';
+ $tips .= '您已中奖' . implode(',', $tipsAry) . '
';
} else {
$sum = $this->mdBobingUser->count($where);
$row = $this->mdBobingUser->count(array_merge($where, array('credit<=' => $credit)));
$percentage = round($row / $sum * 100, 2);
- $tips = '您已打败全闽南' . $percentage . '%的用户
';
+ $tips .= '您已打败全闽南' . $percentage . '%的用户
';
}
- $tips = $tips . '继续邀请好友助力博饼,冲刺大奖吧~
';
+ $tips .= '继续邀请好友助力博饼,冲刺大奖吧~
';
}
}
//$menulist[] = array('title' => '9.9抢500购车金', 'url' => 'buy_car_gold', 'img' => $this->mdBobingUser->appImg('icon-mine-1'));
diff --git a/api/libraries/bobing/Bo.php b/api/libraries/bobing/Bo.php
index 86d47b1f..3475eadb 100644
--- a/api/libraries/bobing/Bo.php
+++ b/api/libraries/bobing/Bo.php
@@ -30,7 +30,7 @@ class Bo extends Base
public function kz_bo()
{
if ($this->valid_nums <= 0) {
- $content = '您的博饼次数已经用完啦!
立即邀请好友助力博饼,
获得更多购车金,冲击汽车大奖
助力好友可获得现金红包,最高100元!
';
+ $content = '您的博饼次数已经用完啦~
立即邀请好友助力博饼,
获得更多购车金,
冲击汽车大奖!!!
';
$popup = array('title' => '邀请好友', 'content' => $content, 'btn' => array('title' => '立即邀请', 'url' => '/bobing/pages/game/invite/index'));
return array('status' => 1, 'popup' => $popup);
}
@@ -61,13 +61,13 @@ class Bo extends Base
if ($re_u['car_gold'] < $this->appConfig['max_car_gold']) {//购车金小于购车金设定值
if ($this->appConfig['ratio_car_gold_kz'] && $this->appConfig['ratio_car_gold_kz'] <= rand(1, 5)) {//购车金概率
//$car_gold = $this->carGoldAry[rand(1, 7)];
- $car_gold = rand(90, 110);
+ $car_gold = rand(25, 35);
if (($car_gold + $re_u['car_gold']) > $this->appConfig['max_car_gold']) {//如果购车金大于设定值,那么本次增加到最大值
$car_gold = $this->appConfig['max_car_gold'] - $re_u['car_gold'];
}
$data['car_gold'] = $car_gold;
$all_car_gold = $car_gold + $re_u['car_gold'] + $re_u['buy_car_gold'] + $re_u['lotter_gold'];
- $content = '博到' . $car_gold . '元购车金
您已累计博得' . $all_car_gold . '元购车金
';
+ $content = '博到 ' . $car_gold . ' 元购车金!
您已累计博得
' . $all_car_gold . ' 元购车金
';
$popup = array('title' => '恭喜您', 'content' => $content, 'btn' => array('title' => '立即使用购车金', 'url' => '/bobing/pages/game/signUp/index'));
}
}