dever 2 years ago
parent
commit
f747b8cff7
1 changed files with 4 additions and 1 deletions
  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);
     }