From e4d5467f055ece8cc9dfdc02dd836bcc187034a5 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Wed, 13 Jun 2018 10:15:57 +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