@@ -170,7 +170,6 @@ class Core
}
$key = 'dlv1_' . $id. '_' . $parent_page_id . '_' . $page_id . '_' . $index . '_' . $times_id . '_' . $day . '_' . $uid . '_' . $ticket_id;
-
$code = Dever::encode($key, $this->key);
return $code;
@@ -397,6 +397,16 @@ class Api extends Core
return $data;
+ # 根据page获取code
+ public function getCodeByPage()
+ {
+ $page_id = Dever::input('page_id');
+ $index = Dever::input('index', 0);
+ $data['code'] = $this->getCode($this->id, $this->parent_page_id, $page_id, $index, $this->times, $this->day, $this->share_uid, $this->ticket_id);
+
+ return $data;
+ }
# 获取合集下的时光
public function getTimes()
{