From 36c8e22ddae6ba802b79d2fbd5336c798ced7e94 Mon Sep 17 00:00:00 2001
From: zhaoxiang <zhaoxiang051405@gmail.com>
Date: Mon, 26 Feb 2018 11:34:17 +0800
Subject: [PATCH] =?UTF-8?q?modified=20=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3?=
 =?UTF-8?q?=E5=88=86=E7=BB=84=E7=9A=84=E6=97=B6=E9=97=B4=E5=B1=9E=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 application/admin/controller/InterfaceGroup.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/admin/controller/InterfaceGroup.php b/application/admin/controller/InterfaceGroup.php
index 0662517..ff370bc 100644
--- a/application/admin/controller/InterfaceGroup.php
+++ b/application/admin/controller/InterfaceGroup.php
@@ -95,6 +95,7 @@ class InterfaceGroup extends Base {
      */
     public function add() {
         $postData = $this->request->post();
+        $postData['addTime'] = $postData['updateTime'] = time();
         $res = ApiGroup::create($postData);
         if ($res === false) {
             return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');
@@ -110,6 +111,7 @@ class InterfaceGroup extends Base {
      */
     public function edit() {
         $postData = $this->request->post();
+        $postData['updateTime'] = time();
         $res = ApiGroup::update($postData);
         if ($res === false) {
             return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');