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

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