Skip to content

v3.1.3: Update helper.php

Choose a tag to compare

@lphkxd lphkxd released this 16 Aug 05:01
· 6 commits to master since this release
c25792b

支持新特征,无需匿名函数

# 旧的用法
 $appInfo = cache_has_set("cache-{$client_id}",function () use ($client_id){
            return App::where('client_id', $client_id)->first();
        }); 
# 新的用法
$appInfo = cache_has_set("cache-{$client_id}",App::where('client_id', $client_id)->first());