Commit 085bd45666d3c8903f44bb169d5f051fada0c140
1 parent
5bdacb01
Exists in
master
fixed #3
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/qy_wechat_api/api/user.rb
... | ... | @@ -17,13 +17,13 @@ module QyWechatApi |
17 | 17 | def create(user_id, name, options={}) |
18 | 18 | user = {userid: user_id} |
19 | 19 | user[:name] = name |
20 | - user.merge(options) | |
20 | + user.merge!(options) | |
21 | 21 | http_post("create", user) |
22 | 22 | end |
23 | 23 | |
24 | 24 | def update(user_id, options={}) |
25 | 25 | user = {userid: user_id} |
26 | - user.merge(options) | |
26 | + user.merge!(options) | |
27 | 27 | http_post("update", user) |
28 | 28 | end |
29 | 29 | ... | ... |