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

33 lines
829 B
PHP
Raw Normal View History

2021-10-19 00:18:35 +00:00
<?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;
}
}
?>