1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- class TPWechat extends Wechat
- {
-
- protected function log($log){
- if ($this->debug) {
- if (function_exists($this->logcallback)) {
- if (is_array($log)) $log = print_r($log,true);
- return call_user_func($this->logcallback,$log);
- }elseif (class_exists('Log')) {
- Log::write('wechat:'.$log, Log::DEBUG);
- return true;
- }
- }
- return false;
- }
-
- protected function setCache($cachename,$value,$expired){
- return S($cachename,$value,$expired);
- }
-
- protected function getCache($cachename){
- return S($cachename);
- }
-
- protected function removeCache($cachename){
- return S($cachename,null);
- }
- }
|