|
@@ -29,17 +29,17 @@ class Account
|
|
|
}
|
|
|
|
|
|
# 退款操作
|
|
|
- public function refund($order_num, $total, $pay_cash, $refund_order_num, $sector_id, $place_id, $type)
|
|
|
+ public function refund($order, $pay_cash, $refund_order_num, $sector_id, $place_id, $type)
|
|
|
{
|
|
|
- $account = Dever::input('platform', 'is_string', '账户', 'weixin');
|
|
|
- $env = Dever::input('env', 'is_numeric', '运行环境', 3);
|
|
|
+ $account = $order['env_platform'];
|
|
|
+ $env = $order['env_type'];
|
|
|
$account = $this->getInfo(['key' => 'pay_' . $account]);
|
|
|
if (!$account) {
|
|
|
Dever::error('支付账户配置错误');
|
|
|
}
|
|
|
- $order['order_num'] = $order_num;
|
|
|
+ $order['order_num'] = $order['order_num'];
|
|
|
$order['refund_order_num'] = $refund_order_num;
|
|
|
- $order['total'] = $total*100;
|
|
|
+ $order['total'] = $order['pay_money_cash']*100;
|
|
|
$order['pay_cash'] = $pay_cash*100;
|
|
|
$order['notify'] = 'Porder/Lib/Notify.refund|' . $sector_id . '|' . $place_id . '|' . $type . '|' . $refund_order_num;
|
|
|
|