|
@@ -50,7 +50,7 @@ discard block |
|
|
block discarded – undo |
|
50
|
50
|
*/ |
|
51
|
51
|
protected function registerRoutes() |
|
52
|
52
|
{ |
|
53
|
|
- Route::prefix('easywechat-composer')->namespace('EasyWeChatComposer\Laravel\Http\Controllers')->group(function () { |
|
|
53
|
+ Route::prefix('easywechat-composer')->namespace('EasyWeChatComposer\Laravel\Http\Controllers')->group(function() { |
|
54
|
54
|
$this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
55
|
55
|
}); |
|
56
|
56
|
} |
|
@@ -107,7 +107,7 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
{ |
|
108
|
108
|
$ttl = (version_compare(Application::VERSION, '5.8') === -1) ? 30 : 1800; |
|
109
|
109
|
|
|
110
|
|
- return Cache::remember('easywechat-composer.encryption_key', $ttl, function () { |
|
|
110
|
+ return Cache::remember('easywechat-composer.encryption_key', $ttl, function() { |
|
111
|
111
|
throw_unless(file_exists($path = base_path('composer.lock')), RuntimeException::class, 'No encryption key provided.'); |
|
112
|
112
|
|
|
113
|
113
|
return md5_file($path); |
Please login to merge, or discard this patch.