|
@@ -85,10 +85,9 @@ class paymentLogic
|
|
* 取得实物订单所需支付金额等信息, 移动支付时, 在使用红包时需要计算运费
|
|
* 取得实物订单所需支付金额等信息, 移动支付时, 在使用红包时需要计算运费
|
|
* @param int $pay_sn
|
|
* @param int $pay_sn
|
|
* @param int $member_id
|
|
* @param int $member_id
|
|
- * @param boolean $mobile_flag
|
|
|
|
* @return array
|
|
* @return array
|
|
*/
|
|
*/
|
|
- public function getRealOrderInfo($pay_sn, $member_id = null, $mobile_flag = false)
|
|
|
|
|
|
+ public function getRealOrderInfo($pay_sn, $member_id = null)
|
|
{
|
|
{
|
|
//验证订单信息
|
|
//验证订单信息
|
|
$model_order = Model('order');
|
|
$model_order = Model('order');
|
|
@@ -113,13 +112,7 @@ class paymentLogic
|
|
$pay_amount = 0;
|
|
$pay_amount = 0;
|
|
if (!empty($order_list)) {
|
|
if (!empty($order_list)) {
|
|
foreach ($order_list as $order_info) {
|
|
foreach ($order_list as $order_info) {
|
|
- if (false == $mobile_flag) {
|
|
|
|
- $pay_amount += ncPriceFormat(floatval($order_info['order_amount']) - floatval($order_info['pd_amount']));
|
|
|
|
- } else {
|
|
|
|
- // 移动平台需要计算运费
|
|
|
|
- $total_amount = floatval($order_info['order_amount']) + floatval($order_info['shipping_fee']);
|
|
|
|
- $pay_amount += ncPriceFormat(floatval($total_amount) - floatval($order_info['pd_amount']));
|
|
|
|
- }
|
|
|
|
|
|
+ $pay_amount += ncPriceFormat(floatval($order_info['order_amount']) - floatval($order_info['pd_amount']));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -133,10 +126,9 @@ class paymentLogic
|
|
* 取得虚拟订单所需支付金额等信息, 移动支付时, 在使用红包时需要计算运费
|
|
* 取得虚拟订单所需支付金额等信息, 移动支付时, 在使用红包时需要计算运费
|
|
* @param int $order_sn
|
|
* @param int $order_sn
|
|
* @param int $member_id
|
|
* @param int $member_id
|
|
- * @param boolean $mobile_flag
|
|
|
|
* @return array
|
|
* @return array
|
|
*/
|
|
*/
|
|
- public function getVrOrderInfo($order_sn, $member_id = null, $mobile_flag = false)
|
|
|
|
|
|
+ public function getVrOrderInfo($order_sn, $member_id = null)
|
|
{
|
|
{
|
|
|
|
|
|
//验证订单信息
|
|
//验证订单信息
|
|
@@ -157,13 +149,7 @@ class paymentLogic
|
|
|
|
|
|
$pay_amount = 0.0;
|
|
$pay_amount = 0.0;
|
|
//计算本次需要在线支付的订单总金额
|
|
//计算本次需要在线支付的订单总金额
|
|
- if (false == $mobile_flag) {
|
|
|
|
- $pay_amount = ncPriceFormat(floatval($order_info['order_amount']) - floatval($order_info['pd_amount']));
|
|
|
|
- } else {
|
|
|
|
- // 移动平台需要计算运费
|
|
|
|
- $total_amount = floatval($order_info['order_amount']) + floatval($order_info['shipping_fee']);
|
|
|
|
- $pay_amount += ncPriceFormat(floatval($total_amount) - floatval($order_info['pd_amount']));
|
|
|
|
- }
|
|
|
|
|
|
+ $pay_amount = ncPriceFormat(floatval($order_info['order_amount']) - floatval($order_info['pd_amount']));
|
|
|
|
|
|
$order_info['api_pay_amount'] = $pay_amount;
|
|
$order_info['api_pay_amount'] = $pay_amount;
|
|
|
|
|