浏览代码

小调整

lizhen_gitee 1 年之前
父节点
当前提交
1e87349c21

+ 1 - 1
application/api/controller/Index.php

@@ -36,7 +36,7 @@ class Index extends Api
         $message = Db::name('message_sys')->where('is_show',1)->where('is_index',1)->order('weigh','desc')->find();
         $message = $this->info_lang($message,['title','info']);
         if($message){
-            $message['createtime'] = get_last_time($message['createtime']);
+            $message['createtime'] = date('Y-m-d',$message['createtime']);
         }
 
         //留个好评

+ 1 - 1
application/index/controller/Index.php

@@ -26,7 +26,7 @@ class Index extends Controller
         }
 
 
-        $lang = input('lang','zh-cn');
+        $lang = input('lang','zh-cn','strtolower');
 
         $content = Db::name('basedata')->where('key',$key)->find();
 

+ 3 - 0
public/assets/js/backend/general/config.js

@@ -130,6 +130,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
         edit: function () {
             Controller.api.bindevent();
         },
+        newindex: function () {
+            Controller.api.bindevent();
+        },
         api: {
             bindevent: function () {
                 Form.api.bindevent($("form[role=form]"));