|
@@ -513,12 +513,14 @@ class GameLogic
|
|
|
$prlen = strlen($this->wagetnModel->agent_pre);
|
|
$prlen = strlen($this->wagetnModel->agent_pre);
|
|
|
$dtime = date("Y-m-d H") . ":00:00";
|
|
$dtime = date("Y-m-d H") . ":00:00";
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
$cacheObj = C()->get('cache');
|
|
$cacheObj = C()->get('cache');
|
|
|
$key = md5($wagetnname . '-' . $dtime . '-' . $type);
|
|
$key = md5($wagetnname . '-' . $dtime . '-' . $type);
|
|
|
$cache = $cacheObj->get($key);
|
|
$cache = $cacheObj->get($key);
|
|
|
if ($cache && isset($cache['data'])) {
|
|
if ($cache && isset($cache['data'])) {
|
|
|
return $this->makeret(1, 'success', $cache['data']);
|
|
return $this->makeret(1, 'success', $cache['data']);
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
$SQL = <<<LONGSQL
|
|
$SQL = <<<LONGSQL
|
|
|
select "user".*,"money".money from
|
|
select "user".*,"money".money from
|
|
@@ -552,8 +554,8 @@ LONGSQL;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $cachedata = ['datetime' => $dtime, 'data' => $return];
|
|
|
|
|
- $cacheObj->set($key, $cachedata, 1800);
|
|
|
|
|
|
|
+ //$cachedata = ['datetime' => $dtime, 'data' => $return];
|
|
|
|
|
+ //$cacheObj->set($key, $cachedata, 1800);
|
|
|
|
|
|
|
|
return $this->makeret(1, 'success', $return);
|
|
return $this->makeret(1, 'success', $return);
|
|
|
}
|
|
}
|