chengkun
2025-05-20 f6f7bd25619ad0c0dfb5e609332e9fa1db419386
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
 
require_once(dirname(__FILE__) . '/' . 'ios/GTIos.php');
require_once(dirname(__FILE__) . '/' . 'android/GTAndroid.php');
 
class GTPushChannel extends GTApiRequest
{
    /**
     * ios通道推送消息内容
     */
    private $ios;
    /**
     * android通道推送消息内容
     */
    private $android;
 
    public function getIos()
    {
        return $this->ios;
    }
 
    public function setIos($ios)
    {
        $this->ios = $ios;
    }
 
    public function getAndroid()
    {
        return $this->android;
    }
 
    public function setAndroid($android)
    {
        $this->android = $android;
    }
 
    public function getApiParam()
    {
        if ($this->ios != null){
            $this->apiParam["ios"] = $this->ios->getApiParam();
        }
        if ($this->android != null){
            $this->apiParam["android"] = $this->android->getApiParam();
        }
        return $this->apiParam;
    }
}