可以发普通红包 裂变红包 和 企业付款到账户
switch ($_GET['type']) {
case 1:
$res = $objWxPay->sendRedPack($sender, $openid, 100);
break;
case 2:
$res = $objWxPay->sendGroupRedPack($sender, $openid, 100);
break;
case 3:
$res = $objWxPay->sendUserCash($sender, $openid, 100, '111');
break;
default:
$res = '未知';
}