...
|
...
|
@@ -559,6 +559,9 @@ class Member extends Frontend |
|
|
$vipdesc_model = new Vipdesc();
|
|
|
$price = $price_model->where('id',1)->find();
|
|
|
$vipdesc = $vipdesc_model->where('id',1)->find();
|
|
|
$userModel = new \app\index\model\User();
|
|
|
$user = $userModel->findData(['id'=>$this->auth->id]);
|
|
|
if($user['svip_passtime'] < time()){
|
|
|
//折合svip价格
|
|
|
$user_province = Db::name('user_province')->where(['user_id'=>$this->auth->id,'expiration_time'=>['gt',time()]])->select();
|
|
|
$deduct_price = [];
|
...
|
...
|
@@ -569,6 +572,7 @@ class Member extends Frontend |
|
|
}
|
|
|
$svipprice = ($price['svipprice']-array_sum($deduct_price)) <= 0 ? 0 : ($price['svipprice']-array_sum($deduct_price));
|
|
|
$price['svipprice'] = round($svipprice,2);
|
|
|
}
|
|
|
$this->assign('price',$price);
|
|
|
$this->view->assign('price',$price);
|
|
|
$this->view->assign('vipdesc',$vipdesc);
|
...
|
...
|
|