Browse Source

支付

undefined
v-Brocloni 4 years ago
parent
commit
d7de6688a5
1 changed files with 2 additions and 10 deletions
  1. +2
    -10
      addons/unishop/controller/Pay.php

+ 2
- 10
addons/unishop/controller/Pay.php View File

@@ -98,16 +98,8 @@ class Pay extends Base
if (Wechat::h5InWechat()) {
$trade_type = 'wap';
}
$params = [
'amount' => bcmul($order['total_price'], 100),
'orderid' => $order->out_trade_no,
'type' => "wechat",
'title' => $body,
'notifyurl' => Config::getByName('notify_url')['value'],
'trade_type' => $trade_type,

];
return Service::submitOrder($params);
$amount = bcmul($order['total_price'], 100);
return Service::submitOrder($amount, $order->out_trade_no,"wechat", $body, Config::getByName('notify_url')['value'], "", $trade_type);
} catch (Exception $e) {
$this->error($e->getMessage());
}


Loading…
Cancel
Save