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