@@ -192,6 +192,7 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | /** |
| 194 | 194 | * 推送消息给单个账户 |
| 195 | + * @param integer $deviceType |
|
| 195 | 196 | */ |
| 196 | 197 | public function PushSingleAccount($deviceType, $account, $message, $environment = 0) |
| 197 | 198 | { |
@@ -287,6 +288,7 @@ discard block |
||
| 287 | 288 | |
| 288 | 289 | /** |
| 289 | 290 | * 推送消息给APP所有设备 |
| 291 | + * @param integer $deviceType |
|
| 290 | 292 | */ |
| 291 | 293 | public function PushAllDevices($deviceType, $message, $environment = 0) |
| 292 | 294 | { |
@@ -333,6 +335,8 @@ discard block |
||
| 333 | 335 | /** |
| 334 | 336 | * 推送消息给指定tags的设备 |
| 335 | 337 | * 若要推送的tagList只有一项,则tagsOp应为OR |
| 338 | + * @param integer $deviceType |
|
| 339 | + * @param string $tagsOp |
|
| 336 | 340 | */ |
| 337 | 341 | public function PushTags($deviceType, $tagList, $tagsOp, $message, $environment = 0) |
| 338 | 342 | { |
@@ -586,6 +590,9 @@ discard block |
||
| 586 | 590 | return json_decode($json, true); |
| 587 | 591 | } |
| 588 | 592 | |
| 593 | + /** |
|
| 594 | + * @param string $url |
|
| 595 | + */ |
|
| 589 | 596 | protected function callRestful($url, $params) |
| 590 | 597 | { |
| 591 | 598 | $paramsBase = new ParamsBase($params); |
@@ -598,6 +605,9 @@ discard block |
||
| 598 | 605 | return $ret; |
| 599 | 606 | } |
| 600 | 607 | |
| 608 | + /** |
|
| 609 | + * @param string $token |
|
| 610 | + */ |
|
| 601 | 611 | private function ValidateToken($token) |
| 602 | 612 | { |
| 603 | 613 | if (intval($this->accessId) >= 2200000000) { |
@@ -865,11 +875,17 @@ discard block |
||
| 865 | 875 | return $this->m_multiPkg; |
| 866 | 876 | } |
| 867 | 877 | |
| 878 | + /** |
|
| 879 | + * @param Style $style |
|
| 880 | + */ |
|
| 868 | 881 | public function setStyle($style) |
| 869 | 882 | { |
| 870 | 883 | $this->m_style = $style; |
| 871 | 884 | } |
| 872 | 885 | |
| 886 | + /** |
|
| 887 | + * @param ClickAction $action |
|
| 888 | + */ |
|
| 873 | 889 | public function setAction($action) |
| 874 | 890 | { |
| 875 | 891 | $this->m_action = $action; |
@@ -1252,7 +1268,6 @@ discard block |
||
| 1252 | 1268 | { |
| 1253 | 1269 | /** |
| 1254 | 1270 | * 动作类型 |
| 1255 | - * @param int $actionType 1打开activity或app本身,2打开url,3打开Intent |
|
| 1256 | 1271 | */ |
| 1257 | 1272 | public function __construct() |
| 1258 | 1273 | { |
@@ -1393,6 +1408,9 @@ discard block |
||
| 1393 | 1408 | |
| 1394 | 1409 | class Style |
| 1395 | 1410 | { |
| 1411 | + /** |
|
| 1412 | + * @param integer $builderId |
|
| 1413 | + */ |
|
| 1396 | 1414 | public function __construct($builderId, $ring = 0, $vibrate = 0, $clearable = 1, $nId = 0, $lights = 1, $iconType = 0, $styleId = 1) |
| 1397 | 1415 | { |
| 1398 | 1416 | $this->m_builderId = $builderId; |
@@ -1587,6 +1605,7 @@ discard block |
||
| 1587 | 1605 | |
| 1588 | 1606 | /** |
| 1589 | 1607 | * 根据实例化传入的参数生成签名 |
| 1608 | + * @param string $secret_key |
|
| 1590 | 1609 | */ |
| 1591 | 1610 | public function generateSign($method, $url, $secret_key) |
| 1592 | 1611 | { |