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