diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index cd361a2f..1d2dd3db 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -286,7 +286,7 @@ class Auth extends BaseController 'uid' => $user['uid'], 'mer_id' => $merchant['mer_id'], 'order_sn' => $orderSn, - 'total_price' => $merchant['margin'], + 'total_price' => $merchant['recharge_margin'], 'pay_type' => 1, 'create_time' => date('Y-m-d H:i:s') ]); @@ -296,10 +296,10 @@ class Auth extends BaseController "mer_id" => $merchant['mer_id'], "pay_type" => 1, "attach" => "margin", - "order_info" => '{"is_margin":1,"margin":"' . $merchant['margin'] . '"}', - "pay_price" => $merchant['margin'], + "order_info" => '{"is_margin":1,"margin":"' . $merchant['recharge_margin'] . '"}', + "pay_price" => $merchant['recharge_margin'], "order_sn" => $orderSn, - "body" => $merchant['mer_name'] . ' - ' . $merchant['margin'], + "body" => $merchant['mer_name'] . ' - ' . $merchant['recharge_margin'], ]; $payType = 'weixinApp'; $service = new PayService($payType, $param);