bobing_901_5
This commit is contained in:
@@ -147,7 +147,7 @@ class Bobing extends Wxapp
|
||||
{
|
||||
if ($cf_uid) {
|
||||
$zl_nums = $this->mdBobingLogs->count(array('app_id' => $this->app_id, 'act_key' => $this->appConfig['act_key']
|
||||
, 'cf_uid' => $this->uid, 'type' => 1));
|
||||
, 'uid' => $cf_uid, 'cf_uid' => $this->uid, 'type' => 1));
|
||||
$zl_nums = intval($this->appConfig['zl_nums'] - $zl_nums);//剩下助力博饼数
|
||||
$valid_nums = array('title' => '剩余助力次数:', 'value' => $zl_nums <= 0 ? 0 : $zl_nums);
|
||||
} else {
|
||||
|
||||
@@ -288,7 +288,7 @@ class Home extends Wxapp
|
||||
$order_id = $this->mdOrderPurchase->add($add_data);
|
||||
$date = array('sid' => $sid, 'tips' => $order_id ? '' : '购买失败请重试');
|
||||
} else {
|
||||
$date = array('sid' => $re_p['sid'], 'tips' => $re_p['status'] == 2 ? '您已经购买了' : '');
|
||||
$date = array('sid' => $re_p['sid'], 'tips' => $re_p['status'] == 2 ? '每人限购一次' : '');
|
||||
}
|
||||
return $date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user