dever %!s(int64=2) %!d(string=hai) anos
pai
achega
f747b8cff7
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lib/Handle.php

+ 4 - 1
lib/Handle.php

@@ -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);
     }