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