Files
kiri-wchat/test.php
T

30 lines
546 B
PHP
Raw Normal View History

2018-07-19 19:43:07 +08:00
<?php
/**
* Created by PhpStorm.
* User: qv
* Date: 2018/7/19 0019
* Time: 18:38
*/
spl_autoload_register(function ($className) {
2019-07-17 17:17:37 +08:00
include __DIR__ . '/wx/' . str_replace('wchat\\', '', $className) . '.php';
2018-07-19 19:43:07 +08:00
});
2019-07-17 17:17:37 +08:00
$config = new \wchat\Config();
$config->setAppid('');
$config->setAppsecret('');
$config->setMchId('');
$config->setKey('');
$config->setRemoteAddr('');
$config->
$instance = \wchat\Wx::getMiniProGaRamPage();
$instance->setConfig($config);
$recharge = $instance->getRecharge();
$recharge->cashWithdrawal(1, 'xxx', 'ooo');