金柚静态 支付修改4

This commit is contained in:
“wanyongkang”
2024-02-02 17:32:25 +08:00
parent 7af1b2358e
commit 8e01ca53c0
2 changed files with 2 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class UserPrice extends Model
//根据用户价格
if ($discount != 0) {
if ($discount == -1) {
$price = $$this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
$price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
} else {
$scheme_model = new PriceScheme;
$discount = $scheme_model->getone(['Id' => $discount])['discount'];