From 6e986f878ae7b82b1291a2d368485c30a2e02e86 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 26 Apr 2018 14:57:07 +0800
Subject: [PATCH] 新增原始数据上传接口
---
Yfs/Domain/User.php | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/Yfs/Domain/User.php b/Yfs/Domain/User.php
index 00bca82..8ef7457 100644
--- a/Yfs/Domain/User.php
+++ b/Yfs/Domain/User.php
@@ -93,4 +93,33 @@
}
}
+ /**
+ * ������������������
+ * @param [type] $data [description]
+ * @return [type] [description]
+ */
+ public function updateUserInfo($data){
+ if(isset($data['_id']) && !empty($data['_id'])){
+ $id = $data['_id'];
+ $user = $this->model->get(array('_id' => $id));
+ unset($data['_id']);
+ if($user && $user['is_lock'] == 0){
+ $result = $this->model->update($data, array('_id' => $id));
+ if($result){
+ return 0;
+ }
+ else{
+ return 1;
+ }
+ }
+ else{
+ return 2;
+ }
+ }
+ else{
+ return 3;
+ }
+
+ }
+
}
--
Gitblit v1.8.0