예제 #1
0
function JPushMessageByUser($config = array())
{
    $username = SafeUsername(Assign($config['who']));
    $message = sprintf(Assign($config['message']), mb_strlen($username) > 4 ? '有人' : $username, SafeTitle(Assign($config['title'])));
    return JPushUser($message, Assign($config['user']['username_d']), Assign($config['params'], array()));
}
예제 #2
0
#!/usr/bin/php
<?php 
define('HHXC', TRUE);
define('API_ROOT', dirname(dirname(dirname(__FILE__))));
require_once 'config.development.php';
require_once 'common.php';
var_dump(JPushUser('Hello, world', '18319388532'));