dever 2 年之前
父节点
当前提交
f747b8cff7
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/Handle.php

+ 4 - 1
lib/Handle.php

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