|
@@ -15,11 +15,11 @@ class Handle
|
|
|
return $host['name'] . Dever::uid($id);
|
|
|
}
|
|
|
|
|
|
- public function get($host, $url, $param, $host = '')
|
|
|
+ public function get($host_id, $url, $param, $host = '')
|
|
|
{
|
|
|
$param = json_encode($param);
|
|
|
- $where['host_id'] = $host;
|
|
|
- $host = Dever::db('short/host')->one($host);
|
|
|
+ $where['host_id'] = $host_id;
|
|
|
+ $host = Dever::db('short/host')->one($host_id);
|
|
|
$where['key'] = md5($url . '?' . $param);
|
|
|
|
|
|
$info = Dever::db('short/info')->one($where);
|