rabin 1 년 전
부모
커밋
f272090c09
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lib/Handle.php

+ 3 - 3
lib/Handle.php

@@ -15,11 +15,11 @@ class Handle
         return $host['name'] . Dever::uid($id);
     }
 
-    public function get($host, $url, $param, $host = '')
+    public function get($host_id, $url, $param, $host = '')
     {
         $param = json_encode($param);
-        $where['host_id'] = $host;
-        $host = Dever::db('short/host')->one($host);
+        $where['host_id'] = $host_id;
+        $host = Dever::db('short/host')->one($host_id);
         $where['key'] = md5($url . '?' . $param);
 
         $info = Dever::db('short/info')->one($where);