This commit is contained in:
“wanyongkang”
2024-03-07 14:17:51 +08:00
parent 6effe8c206
commit db721488c7

View File

@@ -32,8 +32,10 @@ class Package extends Model
$price = $package['LinePrice'] * $discount / 100; $price = $package['LinePrice'] * $discount / 100;
} else { } else {
if (!empty($user_price)) { if (!empty($user_price)) {
if ($package['Id'] == $user_price['PackageId']) { foreach ($user_price as $k=>$v) {
$price = $user_price['UserPrice']; if ($package['Id'] == $k) {
$price = $v;
}
} }
} }
} }