金柚静态 支付修改8

This commit is contained in:
“wanyongkang”
2024-02-02 18:50:41 +08:00
parent 67d27f6956
commit 9c173413b0
2 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,10 @@ class UserPrice extends Model
//根据用户价格
if ($discount != 0) {
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 {
$scheme_model = new PriceScheme;
$discount = $scheme_model->getone(['Id' => $discount])['discount'];