代理商价格

This commit is contained in:
“wanyongkang”
2021-03-06 17:11:08 +08:00
parent 0d91577fce
commit a687b8b446

View File

@@ -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'],