From a687b8b44613ad45a0c4af7d3b94da65a03295b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 6 Mar 2021 17:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=95=86=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/controller/Agent.php | 4 ++++ 1 file changed, 4 insertions(+) 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'],