|
|
@@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |