2018-07-19 19:43:07 +08:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: qv
|
|
|
|
|
* Date: 2018/7/19 0019
|
|
|
|
|
* Time: 18:38
|
|
|
|
|
*/
|
|
|
|
|
|
2019-07-17 17:17:37 +08:00
|
|
|
$config = new \wchat\Config();
|
|
|
|
|
$config->setAppid('');
|
|
|
|
|
$config->setAppsecret('');
|
|
|
|
|
$config->setMchId('');
|
|
|
|
|
$config->setKey('');
|
|
|
|
|
$config->setRemoteAddr('');
|
2019-07-17 17:27:31 +08:00
|
|
|
$config->setDeviceInfo('');
|
|
|
|
|
$config->setAccessToken('');
|
2019-07-17 17:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
$instance = \wchat\Wx::getMiniProGaRamPage();
|
|
|
|
|
$instance->setConfig($config);
|
|
|
|
|
|
|
|
|
|
$recharge = $instance->getRecharge();
|
|
|
|
|
$recharge->cashWithdrawal(1, 'xxx', 'ooo');
|
2019-07-17 17:27:31 +08:00
|
|
|
$recharge->recharge(1, '', '');
|
|
|
|
|
|
|
|
|
|
$account = $instance->getAccount();
|
|
|
|
|
$account->setSavePath('');
|
|
|
|
|
$account->login('');
|
|
|
|
|
$account->createwxaqrcode('pages/index/index',200);
|
|
|
|
|
$account->getwxacode('pages/index/index',150,true);
|
|
|
|
|
$account->getwxacodeunlimit('pages/index/index',150,true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$message = $instance->getMessage();
|
|
|
|
|
$message->setOpenid('');
|
|
|
|
|
$message->sendCardNews('');
|
|
|
|
|
|
|
|
|
|
$template = $instance->getTemplate();
|
|
|
|
|
$template->setOpenId('');
|
|
|
|
|
$template->setFormId('');
|
|
|
|
|
$template->setTemplateId('');
|
|
|
|
|
$template->setPage('');
|
|
|
|
|
$template->sendTemplate();
|