dever 5 gadi atpakaļ
vecāks
revīzija
113a31411d
2 mainītis faili ar 12 papildinājumiem un 2 dzēšanām
  1. 11 1
      app/collection/src/Api.php
  2. 1 1
      main/database/config.php

+ 11 - 1
app/collection/src/Api.php

@@ -45,6 +45,12 @@ class Api extends Core
         return Dever::db('collection/info')->one($this->id);
     }
 
+    public function getUrl($url)
+    {
+        # 转成短域名
+        return $url;
+    }
+
     # 获取分享的内容
     public function getShare()
     {
@@ -60,7 +66,11 @@ class Api extends Core
         $data['info']['qrcode'] = $data['info']['name'] = $data['info']['price'] = $data['info']['s_price'] = '';
 
         $code = $this->getCode($this->id, $this->parent_page_id, $this->page_id, $index, $this->times, $this->day, $this->uid);
-        $url .= '?code=' . $code;
+        $url .= '?code=' . $code . '&name=' . $info['name'];
+
+        $url = $this->getUrl($url);
+
+        $data['info']['url'] = $url;
 
         $data['info']['qrcode'] = $this->qrcode($url, $content_id);
 

+ 1 - 1
main/database/config.php

@@ -81,7 +81,7 @@ return array
 		'col' => 'name,info,cdate',
 		'value' => array
 		(
-			'"云店·幻境","云店·幻境",' . time(),
+			'"云","云店·幻境",' . time(),
 		),
 	),