| 1 | <?php  | 
            ||
| 20 | class Base  | 
            ||
| 21 | { | 
            ||
| 22 | /**  | 
            ||
| 23 | * @var Object Http  | 
            ||
| 24 | */  | 
            ||
| 25 | protected $http;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @var array|bool  | 
            ||
| 29 | */  | 
            ||
| 30 | protected $response;  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * 初始化  | 
            ||
| 34 | *  | 
            ||
| 35 | * @param Http $http  | 
            ||
| 36 | */  | 
            ||
| 37 | public function __construct(Http $http)  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * 获得响应  | 
            ||
| 44 | *  | 
            ||
| 45 | * @param array $response  | 
            ||
| 46 | * @return bool|array  | 
            ||
| 47 | * @throws ShopsException  | 
            ||
| 48 | */  | 
            ||
| 49 | protected function getResponse($response = array())  | 
            ||
| 74 | }  |