优化语言包获取

pull/12/head
Karson 2022-12-14 16:33:10 +08:00
parent f8292a8813
commit e846244791
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Ajax extends Backend
*/
public function lang()
{
$this->request->get(['callback' => 'define']);
$header = ['Content-Type' => 'application/javascript'];
if (!config('app_debug')) {
$offset = 30 * 60 * 60 * 24; // 缓存一个月

View File

@ -22,6 +22,7 @@ class Ajax extends Frontend
*/
public function lang()
{
$this->request->get(['callback' => 'define']);
$header = ['Content-Type' => 'application/javascript'];
if (!config('app_debug')) {
$offset = 30 * 60 * 60 * 24; // 缓存一个月