mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-02 12:17:38 +08:00
fix: app 支付调起签名中参数大小写问题
This commit is contained in:
parent
223732dbcc
commit
7916fdd74b
@ -43,7 +43,7 @@ class InvokePrepayPlugin extends \Yansongda\Pay\Plugin\Wechat\Pay\Common\InvokeP
|
||||
{
|
||||
$contents = $invokeConfig->get('appid', '')."\n".
|
||||
$invokeConfig->get('timestamp', '')."\n".
|
||||
$invokeConfig->get('nonceStr', '')."\n".
|
||||
$invokeConfig->get('noncestr', '')."\n".
|
||||
$invokeConfig->get('package', '')."\n";
|
||||
|
||||
return get_wechat_sign($params, $contents);
|
||||
|
@ -23,5 +23,6 @@ class InvokePrepayPluginTest extends TestCase
|
||||
self::assertEquals('Sign=WXPay', $contents->get('package'));
|
||||
self::assertArrayHasKey('sign', $contents->all());
|
||||
self::assertArrayHasKey('timestamp', $contents->all());
|
||||
self::assertArrayHasKey('noncestr', $contents->all());
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ class InvokePrepayPluginTest extends TestCase
|
||||
self::assertArrayHasKey('package', $contents->all());
|
||||
self::assertArrayHasKey('paySign', $contents->all());
|
||||
self::assertArrayHasKey('timeStamp', $contents->all());
|
||||
self::assertArrayHasKey('nonceStr', $contents->all());
|
||||
}
|
||||
|
||||
public function testWrongPrepayId()
|
||||
|
Loading…
Reference in New Issue
Block a user