| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function fetchAttribution($number)  | 
            ||
| 28 |     { | 
            ||
| 29 |         $data = Json::get(Http::get('https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php', [ | 
            ||
| 30 | 'resource_name' => 'guishudi',  | 
            ||
| 31 | 'query' => $number,  | 
            ||
| 32 | 'oe' => 'utf8',  | 
            ||
| 33 | ]), 'data.0', []);  | 
            ||
| 34 |         if (!empty($data)) { | 
            ||
| 35 | $this->_result = [  | 
            ||
| 36 | 'city' => I::get($data, 'city'),  | 
            ||
| 37 | 'province' => I::get($data, 'prov'),  | 
            ||
| 38 | 'type' => I::get($data, 'type'),  | 
            ||
| 39 | ];  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | return $this;  | 
            ||
| 43 | }  | 
            ||
| 45 |