home-school-contact-app/源码/php/AiYaSchoolPush/xmpush/DevTools.php

33 lines
829 B
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 设备查询工具集.
* @author wangkuiwei
* @name DevTools
*
*/
namespace xmpush;
class DevTools extends HttpBase {
public function __construct(){
parent::__construct();
}
public function getAliasesOf($packageName, $regId, $retries=1){
$url = Constants::$domain.Constants::get_all_aliases;
$fields = array('registration_id' => $regId,'restricted_package_name' => $packageName);
$result = $this->getResult($url, $fields, $retries);
return $result;
}
public function getTopicsOf($packageName, $regId, $retries=1){
$url = Constants::$domain.Constants::get_all_topics;
$fields = array('registration_id' => $regId,'restricted_package_name' => $packageName);
$result = $this->getResult($url, $fields, $retries);
return $result;
}
}
?>