上线金柚产品

This commit is contained in:
“wanyongkang”
2024-02-01 17:13:32 +08:00
parent 058b999606
commit 323ae40042
15 changed files with 1407 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
/*
* @Author: 万永康
* @Date: 2020-10-11 12:32:50
* @LastEditTime: 2024-01-13 17:52:59
* @LastEditTime: 2024-01-27 16:19:49
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @Description: In User Settings Edit
* @FilePath: /phptest/alipay/Alipay.php
@@ -153,6 +153,36 @@ class Alipay
return $result;
}
public static function pay_jinyou($param)
{
global $config;
$aop = new \AopClient ();
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
$aop->appId = $config['alipay2']['app_id'];;
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
$aop->apiVersion = '1.0';
$aop->signType = 'RSA2';
$aop->postCharset='utf-8';
$aop->format='json';
$aop->alipayrsaPublicKey = $config['alipay2']['public_key'];
$request = new \AlipayTradePagePayRequest();
$param = json_encode($param);
$request->setReturnUrl('http://www.juip.com/user/myaccounts');
$notifyUrl="http://php-api.juip.com/common/alipay/jinyoualipayverify";
$request->setNotifyUrl($notifyUrl);
$request->setBizContent($param);
$result = $aop->pageExecute ( $request);
return $result;
}
/**