|
@@ -164,11 +164,12 @@ class IndexController extends HomeBaseController |
|
@@ -164,11 +164,12 @@ class IndexController extends HomeBaseController |
164
|
public function alipay()
|
164
|
public function alipay()
|
165
|
{
|
165
|
{
|
166
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
166
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
167
|
- $alipay = new \AlipayTradeService();
|
167
|
+ $alipay_config = [];
|
|
|
168
|
+ $alipay = new \AlipayTradeService($alipay_config);
|
168
|
$builder = [
|
169
|
$builder = [
|
169
|
'oid' => 2
|
170
|
'oid' => 2
|
170
|
];
|
171
|
];
|
171
|
- $return = $alipay->test();
|
172
|
+ $return = $alipay->wapPay($builder, '', '');
|
172
|
print_r($return);
|
173
|
print_r($return);
|
173
|
}
|
174
|
}
|
174
|
|
175
|
|