diff --git a/app/agent/controller/Agent.php b/app/agent/controller/Agent.php index ce09d4d..411037d 100644 --- a/app/agent/controller/Agent.php +++ b/app/agent/controller/Agent.php @@ -172,6 +172,10 @@ class Agent extends Controller 'refund' => $product_list[$info['ProductId']]['RefundDayPrice'] * $info['RefundDayPriceDiscount']/100, ]; + if ($update_data['price'] < $package_list[$info['PackageId']]['MinPrice']){ + $update_data['price'] = $package_list[$info['PackageId']]['MinPrice']; + } + $where = [ 'package_id' => $info['PackageId'], 'agent_id' => $data['userId'],