作者 杨育虎

2

{"license":"regular","licenseto":"10789","licensekey":"WNO47ItzHFX2RecU +LO5D6iOUctncNHkfpSYww==","files":["public\\assets\\addons\\epay\\css\\common.css","public\\assets\\addons\\epay\\css\\epay.css","public\\assets\\addons\\epay\\images\\alipay.png","public\\assets\\addons\\epay\\images\\expired.png","public\\assets\\addons\\epay\\images\\logo-alipay.png","public\\assets\\addons\\epay\\images\\logo-wechat.png","public\\assets\\addons\\epay\\images\\paid.png","public\\assets\\addons\\epay\\images\\scan.png","public\\assets\\addons\\epay\\images\\screenshot-alipay.png","public\\assets\\addons\\epay\\images\\screenshot-wechat.png","public\\assets\\addons\\epay\\images\\wechat.png","public\\assets\\addons\\epay\\js\\common.js","public\\assets\\addons\\epay\\less\\common.less","public\\assets\\addons\\epay\\less\\epay.less"]}
\ No newline at end of file
{"license":"regular","licenseto":"10789","licensekey":"2FOp9HeJs4mZUAyR kDKlB7VKVtaZ8N2phFuzRg==","files":["public\/assets\/addons\/epay\/images\/wechat.png","public\/assets\/addons\/epay\/images\/paid.png","public\/assets\/addons\/epay\/images\/screenshot-wechat.png","public\/assets\/addons\/epay\/images\/scan.png","public\/assets\/addons\/epay\/images\/screenshot-alipay.png","public\/assets\/addons\/epay\/images\/logo-alipay.png","public\/assets\/addons\/epay\/images\/logo-wechat.png","public\/assets\/addons\/epay\/images\/expired.png","public\/assets\/addons\/epay\/images\/alipay.png","public\/assets\/addons\/epay\/css\/epay.css","public\/assets\/addons\/epay\/css\/common.css","public\/assets\/addons\/epay\/less\/common.less","public\/assets\/addons\/epay\/less\/epay.less","public\/assets\/addons\/epay\/js\/common.js"]}
\ No newline at end of file
... ...
-----BEGIN CERTIFICATE-----
MIID+TCCAuGgAwIBAgIUa1tMTWP/a87227jJLWaSTFrb/BMwDQYJKoZIhvcNAQEL
BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT
FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDV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iRsGCJKAG
KEQE5WHuY5WAxv9mY/iiu3gi2wKBgQDFDoCTMOLImWSjTNzytt/KKRWVXgAfO4pp
xabbJE/QJ3FLM7RIHXWanYfYMa+xnzqD7gabJhBZTnwWXZrIbxYz7OTwkKegMXTr
FJgV27xd+PClzE1IO+Kw9c7lxyJZNz3TeUB9iQRm/FKmQQzsEGkgHo1g+KOk/itp
/CxIheetzwKBgQCNY6KQCr36hq+AndlSEFDlBBXazJQ/HBnS4d4iuTD7Y2O9ATfy
W6cRQFyMozD49IuNDvh+8DHnfX0JI10hSoz+TkljV/4Z2fb/pGuTwyf1Vea8Ty1s
5rnoO9BMscx+68kOXxwVLczb20y/AOOEAKhIgCsfww5WoQtbhY9EKgLumwKBgH6C
2AMnoIF/EYBRyYw94iEtDUFPDy7+D9fmYEBS6LbPi8nnEPg3iZhRSLSA+bZEbtHi
j/Utk9NyMvI8+DF0OEHv9e+IP0X2WoTOPPHTl/SQ7RbUuk0EvX404bbdiOzULWpG
byPpQp1Ho1w/aSdpRcSsOMIn/w/faknp7xhEd8A7AoGAHAhYLAqbfBP0vTksb5i+
9RmSFQT7sZe5KnTFnVw6Xasn4SfqoXlxYO5relTyoBDteHMbIvLeyQQWOA9eHzKq
cKu8ztHWhkLSlDqA7WbJ5F0jyzqgwiXpRn+49f+MYkiCRIGDFMt3g7/7fSSX4zhm
7rwnLCKmR1382jYlhvO95gc=
-----END PRIVATE KEY-----
... ... @@ -3,7 +3,7 @@ title = 微信支付宝整合
intro = 可用于快速整合微信、支付宝支付功能
author = FastAdmin
website = https://www.fastadmin.net
version = 1.2.0
version = 1.2.1
state = 1
url = /addons/epay
license = regular
... ...
... ... @@ -210,32 +210,18 @@ class Service
}
/**
* 验证返回是否成功
* 验证返回是否成功,请勿用于判断是否支付成功的逻辑验证
* 已弃用
*
* @param string $type 支付类型
* @param array $config 配置信息
* @return bool|\Yansongda\Pay\Gateways\Alipay
* @deprecated 已弃用,请勿用于逻辑验证
* @return bool
*/
public static function checkReturn($type, $config = [])
{
$type = strtolower($type);
if (!in_array($type, ['wechat', 'alipay'])) {
return false;
}
//微信无需验证
if ($type == 'wechat') {
return true;
}
try {
$pay = Pay::alipay(self::getConfig($type));
$data = $pay->verify(request()->get('', null, 'trim'));
if ($data) {
return $pay;
}
} catch (Exception $e) {
return false;
}
return false;
//由于PC及移动端无法获取请求的参数信息,取消return验证,均返回true
return true;
}
/**
... ...