dever il y a 4 ans
Parent
commit
ec4b10bd1a
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      app/collection/lib/Core.php
  2. 1 0
      app/collection/src/Api.php

+ 1 - 1
app/collection/lib/Core.php

@@ -126,7 +126,7 @@ class Core
             $this->id = $code[1];
             $this->parent_page_id = $code[2];
             $this->page_id = $code[3];
-            $this->index = $code[4];
+            $this->index = $code[4] ? $code[4] : 0;
             $this->times = $code[5];
             if (isset($code[6]) && $code[6]) {
                 $this->day = $code[6];

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

@@ -78,6 +78,7 @@ 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 . '&name=' . $info['name'];
 
         $url = $this->getUrl($url);