|
|
@@ -14,11 +14,11 @@ class User extends Lyapi_Controller{
|
|
|
public function login() {
|
|
|
$user_id =123;
|
|
|
// ... 验证账号密码成功,得到 $user_id
|
|
|
- $data = [
|
|
|
- 'user_id' => $user_id,
|
|
|
- 'created_at' => time()
|
|
|
- ];
|
|
|
- $this->cache->save("lvhaoceshi1", $data, 100);
|
|
|
+ // $data = [
|
|
|
+ // 'user_id' => $user_id,
|
|
|
+ // 'created_at' => time()
|
|
|
+ // ];
|
|
|
+ // $this->cache->save("lvhaoceshi1", $data, 100);
|
|
|
echo "<pre>";
|
|
|
print_r($this->cache->get("lvhaoceshi1"));
|
|
|
die;
|