|
@@ -6,7 +6,7 @@ use Dever;
|
|
|
|
|
|
class Handle
|
|
|
{
|
|
|
- public function get($type, $url, $param)
|
|
|
+ public function get($type, $url, $param, $host = '')
|
|
|
{
|
|
|
$param = json_encode($param);
|
|
|
$where['type'] = $type;
|
|
@@ -22,6 +22,9 @@ class Handle
|
|
|
$where['param'] = $param;
|
|
|
$id = Dever::db('short/info')->insert($where);
|
|
|
}
|
|
|
+ if ($host) {
|
|
|
+ $type['host'] = $host;
|
|
|
+ }
|
|
|
|
|
|
return $type['host'] . Dever::uid($id);
|
|
|
}
|