|
|
@@ -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()); |
|
|
|
} |
|
|
|