Code Duplication    Length = 14-15 lines in 2 locations

src/API/CardApi.php 1 location

@@ 76-90 (lines=15) @@
73
     *
74
     * @return array|bool
75
     */
76
    public function qrcode($card)
77
    {
78
        if (!is_array($card)) {
79
            $this->setError('参数缺失');
80
81
            return false;
82
        }
83
84
        $this->apitype = 'card';
85
        $this->module  = 'qrcode';
86
87
        $res = $this->_post('create', $card);
88
89
        return $res;
90
    }
91
92
    /**
93
     *  通过ticket换取二维码

src/API/UserApi.php 1 location

@@ 42-55 (lines=14) @@
39
     *
40
     * @return array|bool 用户信息.
41
     */
42
    public function getUserList(array $user_list)
43
    {
44
        if (!is_array($user_list)) {
45
            $this->setError('参数必须为一个数组');
46
47
            return false;
48
        }
49
50
        $this->module = 'user';
51
52
        $res = $this->_post('info/batchget', $user_list);
53
54
        return $res;
55
    }
56
57
    /**
58
     * 获取用户Openid列表.