Code Duplication    Length = 11-11 lines in 2 locations

src/Api.php 1 location

@@ 209-219 (lines=11) @@
206
     * @return array
207
     */
208
209
    public static function getWxIpList()
210
    {
211
        $module   = 'getcallbackip';
212
        $queryStr = [];
213
        $res      = self::_get($module, '', $queryStr);
214
        if (!$res) {
215
            exit(self::getError());
216
        }
217
218
        return $res;
219
    }
220
221
    /**
222
     * 获取AppId

src/ComponentApi.php 1 location

@@ 187-197 (lines=11) @@
184
     * @return array
185
     */
186
187
    public static function getWxIpList()
188
    {
189
        $module   = 'getcallbackip';
190
        $queryStr = [];
191
        $res      = self::_get($module, '', $queryStr);
192
        if (!$res) {
193
            exit(self::getError());
194
        }
195
196
        return $res;
197
    }
198
199
    /**
200
     * 获取AppId