1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\phpPay\hpay\pay;
- use crmeb\services\SystemConfigService;
- class AliLife extends Common
- {
- // 支付宝小程序支付:00002023
- // 支付宝生活号支付:00002022
- public $productId = '00002023'; //根据不同场景使用不同产品号
- // 参数映射
- protected function apiMap()
- {
- return array(
- 'orderPay' => array(
- 'method' => 'sandpay.trade.pay',
- 'url' => '/gateway/api/order/pay',
- ),
- 'orderQuery' => array(
- 'method' => 'sandpay.trade.query',
- 'url' => '/gateway/api/order/query',
- ),
- 'orderRefund' => array(
- 'method' => 'sandpay.trade.refund',
- 'url' => '/gateway/api/order/refund',
- ),
- 'clearfileDownload' => array(
- 'method' => 'sandpay.trade.download',
- 'url' => '/gateway/api/clearfile/download',
- ),
- );
- }
- protected function postData($method)
- {
- $this->publicKeyPath = SystemConfigService::get('site_url').SystemConfigService::get('public');
- $this->privateKeyPath = SystemConfigService::get('site_url').SystemConfigService::get('private');
- return parent::postData($method); // TODO: Change the autogenerated stub
- }
- public function request($apiName)
- {
- return parent::request($apiName); // TODO: Change the autogenerated stub
- }
- }
|