|
|
@@ -27,8 +27,8 @@ class Service |
|
|
|
'orderid' => $orderid, |
|
|
|
'type' => $type, |
|
|
|
'title' => $title, |
|
|
|
'notifyurl' => $notifyurl, |
|
|
|
'returnurl' => $returnurl, |
|
|
|
'notify_url' => $notifyurl, |
|
|
|
'return_url' => $returnurl, |
|
|
|
'method' => $method, |
|
|
|
]; |
|
|
|
} else { |
|
|
@@ -43,8 +43,8 @@ class Service |
|
|
|
$openid = isset($params['openid']) ? $params['openid'] : ''; |
|
|
|
|
|
|
|
$request = request(); |
|
|
|
$notifyurl = isset($params['notifyurl']) ? $params['notifyurl'] : $request->root(true) . '/addons/epay/index/' . $type . 'notify'; |
|
|
|
$returnurl = isset($params['returnurl']) ? $params['returnurl'] : $request->root(true) . '/addons/epay/index/' . $type . 'return/out_trade_no/' . $orderid; |
|
|
|
$notifyurl = isset($params['notify_url']) ? $params['notify_url'] : $request->root(true) . '/addons/epay/index/' . $type . 'notify'; |
|
|
|
$returnurl = isset($params['return_url']) ? $params['return_url'] : $request->root(true) . '/addons/epay/index/' . $type . 'return/out_trade_no/' . $orderid; |
|
|
|
$html = ''; |
|
|
|
$config = Service::getConfig($type); |
|
|
|
$config[$type]['notify_url'] = $notifyurl; |
|
|
|