Code Duplication    Length = 15-15 lines in 2 locations

src/API/PoiApi.php 2 locations

@@ 40-54 (lines=15) @@
37
     *
38
     * @return bool|array
39
     */
40
    public function addpoi($base_info = [])
41
    {
42
        if (empty($base_info) || !is_array($base_info)) {
43
            $this->setError('参数错误');
44
45
            return false;
46
        }
47
48
        $queryStr                          = [];
49
        $queryStr['business']['base_info'] = $base_info;
50
51
        $res = $this->_post('addpoi', $queryStr);
52
53
        return $res;
54
    }
55
56
    /**
57
     * 查询门店信息
@@ 111-125 (lines=15) @@
108
     *
109
     * @return  bool|array
110
     */
111
    public function updatepoi($base_info = [])
112
    {
113
        if (empty($base_info) || !is_array($base_info) || empty($base_info['poi_id'])) {
114
            $this->setError('参数错误');
115
116
            return false;
117
        }
118
119
        $queryStr                          = [];
120
        $queryStr['business']['base_info'] = $base_info;
121
122
        $res = $this->_post('updatepoi', $queryStr);
123
124
        return $res;
125
    }
126
127
    /**
128
     * 删除门店