yinyi/push

There is no license information available for the latest version (v1.1.3) of this package.

推送

v1.1.3 2022-11-18 05:47 UTC

This package is auto-updated.

Last update: 2024-04-18 09:05:32 UTC


README

配置文件

复制根目录下的push.php文件到config

相关数据库 tym_public_message_config tym_public_phone_template tym_public_sms_template tym_public_wx_template tym_public_app_template 可自行在配置文件里修改

1.推送方法

$push = new Push();
$push->push($key, $to, $param);

参数说明

1.$key 模板关键词,类似于:

$key = "invite_register_success";

2.$to 用户手机号,类似于:

$to = 18927424525;

3.$param 推送内容相关参数,类似于:

$param = [
    "code" => "200",
    "time" => "15",
    "amount" => "15"
];