mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 增加接口分组的时间属性
This commit is contained in:
parent
b46a9f13ad
commit
36c8e22dda
@ -95,6 +95,7 @@ class InterfaceGroup extends Base {
|
|||||||
*/
|
*/
|
||||||
public function add() {
|
public function add() {
|
||||||
$postData = $this->request->post();
|
$postData = $this->request->post();
|
||||||
|
$postData['addTime'] = $postData['updateTime'] = time();
|
||||||
$res = ApiGroup::create($postData);
|
$res = ApiGroup::create($postData);
|
||||||
if ($res === false) {
|
if ($res === false) {
|
||||||
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');
|
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');
|
||||||
@ -110,6 +111,7 @@ class InterfaceGroup extends Base {
|
|||||||
*/
|
*/
|
||||||
public function edit() {
|
public function edit() {
|
||||||
$postData = $this->request->post();
|
$postData = $this->request->post();
|
||||||
|
$postData['updateTime'] = time();
|
||||||
$res = ApiGroup::update($postData);
|
$res = ApiGroup::update($postData);
|
||||||
if ($res === false) {
|
if ($res === false) {
|
||||||
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');
|
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR, '操作失败');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user