wchat/wchat

一个参数效验扩展

2.8 2020-08-10 03:19 UTC

This package is not auto-updated.

Last update: 2022-12-02 09:51:13 UTC


README

项目介绍

微信小程序接口

配置项


$config = new \common\Config();
$config->setAppid('');
$config->setAppsecret('');
$config->setMchId('');
$config->setKey('');
$config->setRemoteAddr('');
$config->setDeviceInfo('');
$config->setAccessToken('');


$instance = \wchat\Wx::getMiniProGaRamPage();
$instance->setConfig($config);

$recharge = $instance->getRecharge();
$recharge->cashWithdrawal(1, 'xxx', 'ooo');
$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();