Browse Source

checkredis

undefined
娄梦宁 4 years ago
parent
commit
083dd8427f
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      addons/unishop/controller/User.php

+ 8
- 0
addons/unishop/controller/User.php View File

@@ -9,6 +9,7 @@

namespace addons\unishop\controller;

use addons\unishop\extend\Redis;
use addons\unishop\extend\Wechat;
use addons\unishop\model\UserExtend;
use app\common\library\Sms;
@@ -273,5 +274,12 @@ class User extends Base

}

public function checkRedis(){
$redis = new Redis();
$a=$redis->handler->set("test_redis",1,86400);
$b=$redis->handler->get("test_redis");
$this->success('', $b);
}


}

Loading…
Cancel
Save