mirror of https://gitee.com/karson/fastadmin.git
优化语言包获取
parent
f8292a8813
commit
e846244791
|
|
@ -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; // 缓存一个月
|
||||
|
|
|
|||
|
|
@ -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; // 缓存一个月
|
||||
|
|
|
|||
Loading…
Reference in New Issue