Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw5123 committed Apr 28, 2017
2 parents ad1f989 + 3450faa commit d5c1005
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JMessage PhoneGap / Cordova Plugin

[![release](https://img.shields.io/badge/release-2.3.4-blue.svg)](https://github.com/jpush/jmessage-phonegap-plugin/releases)
[![release](https://img.shields.io/badge/release-2.3.5-blue.svg)](https://github.com/jpush/jmessage-phonegap-plugin/releases)
[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-lightgrey.svg)](https://github.com/jpush/jmessage-phonegap-plugin)
[![QQ Group](https://img.shields.io/badge/QQ%20Group-413602425-red.svg)](https://github.com/jpush/jmessage-phonegap-plugin)
[![weibo](https://img.shields.io/badge/weibo-JPush-blue.svg)](http://weibo.com/jpush?refer_flag=1001030101_&is_all=1)
Expand Down
3 changes: 2 additions & 1 deletion doc/Android_detail_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
- signature:个性签名。
- gender:性别。
- region:地区。
- value:更新的值。
- avatar : 头像。
- value:更新的值,当更新头像时,为图片路径。
- successCallback:获取成功的回调函数,无返回值。
- errorCallback:更新失败的回调函数,以参数形式返回错误信息。如果为 null,默认打印失败信息日志。

Expand Down
26 changes: 11 additions & 15 deletions doc/iOS_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,22 @@ API 统一说明:
window.JMessage.updateMyPassword(oldPwd, newPwd, errorCallback);


### API - updateMyInfo
### API - updateMyInfo(与 Android 通用)

获取我的信息(当前登录用户)
#### 接口定义
window.JMessage.updateMyInfo(field, value, successCallback, errorCallback);
#### 参数说明
- field:数字、或纯数字字符串

/// 用户信息字段: 用户名
kJMSGUserFieldsNickname = 0,
/// 用户信息字段: 生日
kJMSGUserFieldsBirthday = 1,
/// 用户信息字段: 签名
kJMSGUserFieldsSignature = 2,
/// 用户信息字段: 性别
kJMSGUserFieldsGender = 3,
/// 用户信息字段: 区域
kJMSGUserFieldsRegion = 4,
/// 用户信息字段: 头像 (内部定义的 media_id)
kJMSGUserFieldsAvatar = 5,
- userInfoField:需要更新的用户信息字段。包括:
- nickname:昵称。
- birthday:生日。
- signature:个性签名。
- gender:性别。
- region:地区。
- avatar : 头像。
- value:更新的值,当更新头像时,为图片路径。
- successCallback:获取成功的回调函数,无返回值。
- errorCallback:更新失败的回调函数,以参数形式返回错误信息。如果为 null,默认打印失败信息日志。


### API - updateNoteName
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jmessage-phonegap-plugin",
"version": "2.3.4",
"version": "2.3.5",
"description": "JMessage Cordova Plugin.",
"cordova": {
"id": "jmessage-phonegap-plugin",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="jmessage-phonegap-plugin"
version="2.3.4">
version="2.3.5">

<name>JMessage</name>
<description>集成极光 IM 和推送功能</description>
Expand Down

0 comments on commit d5c1005

Please sign in to comment.