|
@@ -480,11 +480,11 @@ class Auth
|
|
|
|
|
|
$data = $this->data();
|
|
$data = $this->data();
|
|
|
|
|
|
- $saveKey = str_replace('/', '-', $key);
|
|
|
|
- $data = $this->save->get($this->name . '_topgetv1_' . $saveKey . '_b' . $data['id']);
|
|
|
|
|
|
+ $key = str_replace('/', '-', $key);
|
|
|
|
+ $data = $this->save->get($this->name . '_topgetv1_' . $key . '_b' . $data['id']);
|
|
|
|
|
|
# 当数据不存在时,先从数据库里取出一个最新的
|
|
# 当数据不存在时,先从数据库里取出一个最新的
|
|
- if (!$data) {
|
|
|
|
|
|
+ if (!$data && $state == true) {
|
|
$info = Dever::db('manage/top')->key(array('where_key' => $key));
|
|
$info = Dever::db('manage/top')->key(array('where_key' => $key));
|
|
if ($info) {
|
|
if ($info) {
|
|
$data = Dever::db('manage/top')->getOne(array('where_top_id' => $info['id']));
|
|
$data = Dever::db('manage/top')->getOne(array('where_top_id' => $info['id']));
|