Skip to content

Commit 561b83c

Browse files
committed
ad;
2 parents a3ac390 + bb74076 commit 561b83c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/FileCache/cache/*

src/FileCache/cache/f33ddb6da1699d8f368cfbdd4971f196

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Wechat.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ public function __construct($config){
4848
$this->appsecret = $config['appsecret'];
4949
$this->redirect_uri = $config['redirect_uri'];
5050
$this->access_token = $this->get_access_token();
51-
52-
// require_once dirname(__FILE__).'/FileCache/src/FileCache.php';
53-
// $this->Cache = new FileCache();
54-
51+
5552
}
5653

5754
/**
@@ -339,6 +336,7 @@ public function cache($key , $value = null , $expire = 3600){
339336

340337
require_once dirname(__FILE__).'/FileCache/src/FileCache.php';
341338
$cache = new \fileCache();
339+
342340

343341
if ($value){
344342
$result = $cache->set($key, $value , $expire);
@@ -354,6 +352,7 @@ public function cacheClear($key = null){
354352

355353
require_once dirname(__FILE__).'/FileCache/src/FileCache.php';
356354
$cache = new \fileCache();
355+
357356

358357
if ($key){
359358
$have = $cache->isHave($key);

0 commit comments

Comments
 (0)