Browse Source

支付宝支付

yijia
v-Brocloni 3 years ago
parent
commit
3e9361b3e4
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      addons/epay/library/Service.php
  2. +2
    -2
      addons/epay/library/Yansongda/Pay/Gateways/Alipay/Alipay.php

+ 4
- 4
addons/epay/library/Service.php View File

@@ -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;


+ 2
- 2
addons/epay/library/Yansongda/Pay/Gateways/Alipay/Alipay.php View File

@@ -53,8 +53,8 @@ abstract class Alipay implements GatewayInterface
'charset' => 'UTF-8',
'sign_type' => 'RSA2',
'version' => '1.0',
'notifyurl' => \addons\unishop\model\Config::getByName('ali_notify_url')['value'],
'returnurl' => \addons\unishop\model\Config::getByName('ali_return_url')['value'],
'notify_url' => \addons\unishop\model\Config::getByName('ali_notify_url')['value'],
'return_url' => \addons\unishop\model\Config::getByName('ali_return_url')['value'],
'timestamp' => date('Y-m-d H:i:s'),
'sign' => '',
'biz_content' => '',


Loading…
Cancel
Save