From d50ec1d43fd3b57305425d38ecc7c84f201e74cf Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Sat, 28 Apr 2018 14:38:13 +0800
Subject: [PATCH] 优化回报数据

---
 Yfs/Model/Base.php |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Yfs/Model/Base.php b/Yfs/Model/Base.php
index c4c6f7d..5758efe 100644
--- a/Yfs/Model/Base.php
+++ b/Yfs/Model/Base.php
@@ -46,7 +46,14 @@
         return $this->db->insert($this->table, $data);
     }
 
-    public function update($data, $query){
+    /**
+     * [add description]
+     */
+    public function save($data){
+        return $this->db->insert($this->table, $data);
+    }
+
+    public function update($data, $query = null){
         return $this->db->update($this->table, $data, $query);
     }
 

--
Gitblit v1.8.0