验证签名

master
chenzhi 5 years ago
parent fd53bdda15
commit 995ea3f9a5

@ -21,7 +21,6 @@ class NotifyController extends BaseController
public function notify()
{
Log::write('回调进来了', Log::DEBUG);
C(api('Config/lists'));
$apitype = I('get.apitype');#获取支付api类型
@ -52,14 +51,12 @@ class NotifyController extends BaseController
}
}
Log::write(serialize($notify), Log::DEBUG);
$pay_way = $apitype;
if ($apitype == "swiftpass") {
$apitype = "weixin";
}
$pay = new \Think\Pay\Pay($pay_way, C($apitype));
$pay = new \Think\Pay($pay_way, C($apitype));
if ($pay->verifyNotify($notify)) {
//获取回调订单信息

@ -1 +1 @@
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv6He7hu2CXe5N0OsyeIBbzT1U4UiJTqiIewNf+6wrNsEm+VYtkybmQ9jdMtOrce/Up/4DmnTMOVMRwQhpdjtaTFGHEYeAHILQOw/DH80zxOukegE7m8xxzETQIkO/3eOFxa+XThP8yWSM8W9oVjOstA+YPzwrq+DA5iVvHl55cU6AhExa+NjVf42x9gzYZZN7v2Y31fm9cw3ejUuEewC58CmrGeua4Lj44kiwwNBvk8Sbwym1u7fCGEOoGWCRXkOh4w3PgMA5UKjVlVgF6jhjkswxmHnH0pMctpcjar8uw0ljxr+d5th+fqydtpzs8HP6Q2KiqHgUZW4EwP74gSH9wIDAQAB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1xgiAwoD6s2UuB/eWyc1cA1vPxtTBYV2fkyBGWpSd8FHzDDzDE7aiKZ1jwOYTsLultNjG7lpJUQqnXX8B8N/uQsW2LVntM7Ry0NMRtYrQnfkaCucTUyjlHSpn+JlOwMzCWF78+b4UuHarmJgc6yqtljL/Sj0wmA8hGxyam37zAPGNKbCZg1xgbO5zSON3zt9+RXfvkSjQlRzZz2LcuWklaa617DvZWxGP6a43hukqbXA1zOwnA3nCm049u0cyrlh9BM/kudRoJqOblu+Qgr4+CKq4FkYDae3EGACqU1xmamQGFVf1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AA4GNADCBiQKBgQDA73uzDUhJXHzYjSiEayXtUZOB
H8I2SM8P92jhMJtaplTLqxbYMjjW75YovHhfYPNwTLyThn+BTgiS1H1lqrkjfRap
sksg4q9KurK4/iGlvpkLDMAFekOGPQJ5VzbnoX42L/uoZp/Sme/fYHfTefuHuCV8
2XeMZYjSYob4/Ih2YQIDAQAB
-----END PUBLIC KEY-----
Loading…
Cancel
Save