水滴返款 -修复bug
This commit is contained in:
@@ -180,9 +180,12 @@ class Alipay {
|
|||||||
|
|
||||||
$scheme_model = new ProductPriceScheme();
|
$scheme_model = new ProductPriceScheme();
|
||||||
//获取代理折扣
|
//获取代理折扣
|
||||||
$discount = $scheme_model->getOne(['discount_id' => $agent_info['discount_id']]);
|
$discount = $scheme_model->getOne(['Id' => $agent_info['discount_id']]);
|
||||||
|
|
||||||
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
||||||
|
if ($price < $package_info['MinPrice']) {
|
||||||
|
$price = $package_info['MinPrice'];
|
||||||
|
}
|
||||||
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -161,9 +161,12 @@ class Wxpay {
|
|||||||
|
|
||||||
$scheme_model = new ProductPriceScheme();
|
$scheme_model = new ProductPriceScheme();
|
||||||
//获取代理折扣
|
//获取代理折扣
|
||||||
$discount = $scheme_model->getOne(['discount_id' => $agent_info['discount_id']]);
|
$discount = $scheme_model->getOne(['Id' => $agent_info['discount_id']]);
|
||||||
|
|
||||||
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
||||||
|
if ($price < $package_info['MinPrice']) {
|
||||||
|
$price = $package_info['MinPrice'];
|
||||||
|
}
|
||||||
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -260,12 +260,16 @@ class Jinyoujt extends Controller
|
|||||||
|
|
||||||
$scheme_model = new ProductPriceScheme();
|
$scheme_model = new ProductPriceScheme();
|
||||||
//获取代理折扣
|
//获取代理折扣
|
||||||
$discount = $scheme_model->getOne(['discount_id' => $agent_info['discount_id']]);
|
$discount = $scheme_model->getOne(['Id' => $agent_info['discount_id']]);
|
||||||
|
|
||||||
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
$price = $package_info['LinePrice'] * $discount['discount'] / 100;
|
||||||
|
if ($price < $package_info['MinPrice']) {
|
||||||
|
$price = $package_info['MinPrice'];
|
||||||
|
}
|
||||||
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
$score_money = $order_info['PaymentAmount'] - $order_info['ConnectCount'] * $order_info['AccountCount'] * $price;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$score_model = new AgentScoreModel();
|
$score_model = new AgentScoreModel();
|
||||||
|
|
||||||
$score_data = [
|
$score_data = [
|
||||||
|
|||||||
Reference in New Issue
Block a user