Преглед изворни кода

'增加用户意见时间戳'

Ethan пре 6 година
родитељ
комит
444511a882
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      application/home/controller/Index.php

+ 3 - 1
application/home/controller/Index.php

@@ -105,7 +105,7 @@ class Index extends Controller
     }//endindex()
 
     /**
-     * 主页管理
+     * 用户留言
      *
      * @access public
      * @return array JsonString
@@ -142,6 +142,8 @@ class Index extends Controller
                 ];
                 return json_encode($result);
             }//end if
+
+            $data['message_addtime'] = time();
             $getAddId = model('Message')->addMessage($data);
             if (empty($getAddId) === false) {
                 $result = [