金柚静态 支付修改8
This commit is contained in:
@@ -15,7 +15,10 @@ class UserPrice extends Model
|
|||||||
//根据用户价格
|
//根据用户价格
|
||||||
if ($discount != 0) {
|
if ($discount != 0) {
|
||||||
if ($discount == -1) {
|
if ($discount == -1) {
|
||||||
$price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
|
$user_price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']]);
|
||||||
|
if (isset($user_price['UserPrice'])) {
|
||||||
|
$price = $user_price['UserPrice'];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$scheme_model = new PriceScheme;
|
$scheme_model = new PriceScheme;
|
||||||
$discount = $scheme_model->getone(['Id' => $discount])['discount'];
|
$discount = $scheme_model->getone(['Id' => $discount])['discount'];
|
||||||
|
|||||||
Reference in New Issue
Block a user