浏览代码

优化语言包获取

Karson 2 年之前
父节点
当前提交
e846244791
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      application/admin/controller/Ajax.php
  2. 1 0
      application/index/controller/Ajax.php

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