|
|
|
@ -116,7 +116,14 @@ class Pay
|
|
|
|
|
$aop = new \AopClient();
|
|
|
|
|
$aop->appId = C('alipay.appid');
|
|
|
|
|
$aop->signType = 'RSA2';
|
|
|
|
|
$aop->rsaPrivateKey = file_get_contents("./Application/Sdk/SecretKey/alipay/rsa2_private_key.txt");
|
|
|
|
|
$aop->rsaPrivateKey = C('alipay.pri_secret');
|
|
|
|
|
if (!$aop->rsaPrivateKey) {
|
|
|
|
|
$aop->rsaPrivateKey = file_get_contents("./Application/Sdk/SecretKey/alipay/rsa2_private_key.txt");
|
|
|
|
|
}
|
|
|
|
|
$aop->alipayrsaPublicKey = C('alipay.pub_secret');
|
|
|
|
|
if (!$aop->alipayrsaPublicKey) {
|
|
|
|
|
$aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt");
|
|
|
|
|
}
|
|
|
|
|
$type = $vo->getPayMethod();
|
|
|
|
|
//file_put_contents(dirname(__FILE__) . '/newbuildRequestForm.txt',json_encode($vo->getOrderNo()));
|
|
|
|
|
switch ($type) {
|
|
|
|
|