Prechádzať zdrojové kódy

优化语言包获取

Karson 2 rokov pred
rodič
commit
e846244791

+ 1 - 1
application/admin/controller/Ajax.php

@@ -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; // 缓存一个月

+ 1 - 0
application/index/controller/Ajax.php

@@ -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; // 缓存一个月