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

+ 3 - 3
lib/Handle.php

@@ -6,13 +6,13 @@ use Dever;
 
 
 class Handle
 class Handle
 {
 {
-    public function showUrl($id)
+    public function showUrl_api($id)
     {
     {
         $info = Dever::db('short/info')->one($id);
         $info = Dever::db('short/info')->one($id);
         $type = Dever::db('short/type')->one($info['type_id']);
         $type = Dever::db('short/type')->one($info['type_id']);
         $host = Dever::db('short/host')->one($info['host_id']);
         $host = Dever::db('short/host')->one($info['host_id']);
 
 
-        return $host['name'] . Dever::uid($id);
+        return $host['name'] . Dever::encode($id);
     }
     }
 
 
     public function get($host_id, $url, $param, $host = '')
     public function get($host_id, $url, $param, $host = '')
@@ -40,7 +40,7 @@ class Handle
 
 
     public function show($str)
     public function show($str)
     {
     {
-        $id = Dever::uid($str, 'decode');
+        $id = Dever::decode($str);
         if ($id && $id > 0) {
         if ($id && $id > 0) {
             $info = Dever::db('short/info')->one($id);
             $info = Dever::db('short/info')->one($id);
             if ($info && $info['url']) {
             if ($info && $info['url']) {