<?php defined('IN_WZ') or exit('No direct script access allowed'); /** * Created by PhpStorm. * User: 闲道人阿力 * Date: 2016/9/7 * Time: 14:34 */ require_once 'jpushsdk/autoload.php' ; use JPush\Client as JPush; class WUZHI_jpushsdk { public function ios…
一.下载极光推送PHP SDK,解压后放在/protected/components/目录下,如下图所示: 二.完善修改下官方的demo例子,我这里复制一份demo,改为NotifyPush.php,如下代码: <?php require dirname(__FILE__) . '/jpush-api-php-client/autoload.php'; use JPush\Client as JPush; class NotifyPush { static function pushAlias(…