chengyanfang

change readme

@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 - 6AF58710F6F4704A0DDB54DA /* BuildFile in Frameworks */ = {isa = PBXBuildFile; }; 10 + 6AF58710F6F4704A0DDB54DA /* (null) in Frameworks */ = {isa = PBXBuildFile; };
11 7ECF5CBC25627CCE001B60C2 /* PreviewTransitionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA725627CCE001B60C2 /* PreviewTransitionViewController.swift */; }; 11 7ECF5CBC25627CCE001B60C2 /* PreviewTransitionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA725627CCE001B60C2 /* PreviewTransitionViewController.swift */; };
12 7ECF5CBD25627CCE001B60C2 /* WebviewPreviewViewContoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA825627CCE001B60C2 /* WebviewPreviewViewContoller.swift */; }; 12 7ECF5CBD25627CCE001B60C2 /* WebviewPreviewViewContoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA825627CCE001B60C2 /* WebviewPreviewViewContoller.swift */; };
13 7ECF5CBE25627CCE001B60C2 /* FileListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA925627CCE001B60C2 /* FileListViewController.swift */; }; 13 7ECF5CBE25627CCE001B60C2 /* FileListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECF5CA925627CCE001B60C2 /* FileListViewController.swift */; };
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 buildActionMask = 2147483647; 86 buildActionMask = 2147483647;
87 files = ( 87 files = (
88 95844E312153A4E800D836F1 /* CoreMotion.framework in Frameworks */, 88 95844E312153A4E800D836F1 /* CoreMotion.framework in Frameworks */,
89 - 6AF58710F6F4704A0DDB54DA /* BuildFile in Frameworks */, 89 + 6AF58710F6F4704A0DDB54DA /* (null) in Frameworks */,
90 8CDC226071D1655432DC3BCC /* Pods_HHMSDKDemo.framework in Frameworks */, 90 8CDC226071D1655432DC3BCC /* Pods_HHMSDKDemo.framework in Frameworks */,
91 ); 91 );
92 runOnlyForDeploymentPostprocessing = 0; 92 runOnlyForDeploymentPostprocessing = 0;
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <key>CFBundleTypeRole</key> 24 <key>CFBundleTypeRole</key>
25 <string>Editor</string> 25 <string>Editor</string>
26 <key>CFBundleURLName</key> 26 <key>CFBundleURLName</key>
27 - <string>jtDoctors</string> 27 + <string></string>
28 </dict> 28 </dict>
29 <dict> 29 <dict>
30 <key>CFBundleTypeRole</key> 30 <key>CFBundleTypeRole</key>
@@ -8,23 +8,36 @@ @@ -8,23 +8,36 @@
8 8
9 * [HHDoctorSDK 接入说明](#hhdoctorsdk-接入说明) 9 * [HHDoctorSDK 接入说明](#hhdoctorsdk-接入说明)
10 * [0. 更新日志](#0-更新日志) 10 * [0. 更新日志](#0-更新日志)
  11 +
11 * [1. 集成方式](#1-集成方式) 12 * [1. 集成方式](#1-集成方式)
12 * [1.1. 手动集成](#11-手动集成) 13 * [1.1. 手动集成](#11-手动集成)
13 * [1.2. 自动集成(推荐)](#12-自动集成推荐) 14 * [1.2. 自动集成(推荐)](#12-自动集成推荐)
14 * [1.3. 调用规则](#13-调用规则) 15 * [1.3. 调用规则](#13-调用规则)
  16 +
15 * [2. 初始化](#2-初始化) 17 * [2. 初始化](#2-初始化)
  18 +
16 * [3. 登录账户](#3-登录账户) 19 * [3. 登录账户](#3-登录账户)
17 * [3.1. 登录](#31-登录) 20 * [3.1. 登录](#31-登录)
18 * [3.2. 登出](#32-登出) 21 * [3.2. 登出](#32-登出)
  22 +
19 * [4. 视频呼叫](#4-视频呼叫) 23 * [4. 视频呼叫](#4-视频呼叫)
  24 +
20 * [5. 代理(delegate)(可选)](#5-代理delegate可选) 25 * [5. 代理(delegate)(可选)](#5-代理delegate可选)
21 * [5.1. 加入](#51-加入) 26 * [5.1. 加入](#51-加入)
22 * [5.2. 移除](#52-移除) 27 * [5.2. 移除](#52-移除)
23 - * [6. 其他配置](#6-其他配置)  
24 - * [6.1. APNs](#61-apns)  
25 - * [6.2. Background Modes](#62-background-modes)  
26 - * [6.3. 扩展参数](#63-extension-params) 28 +
  29 + * [6. 信息流](#6-信息流)
  30 +
  31 + [6.1. 跳转信息流](#61-加入)
  32 +
  33 + * [7. 其他配置](#6-其他配置)
  34 +
  35 + * [7.1. APNs](#61-apns)
  36 + * [7.2. Background Modes](#62-background-modes)
  37 + * [7.3. 扩展参数](#63-extension-params)
  38 +
27 * [问题说明](#问题说明) 39 * [问题说明](#问题说明)
  40 +
28 * [支付宝 SDK 冲突](#支付宝-sdk-冲突) 41 * [支付宝 SDK 冲突](#支付宝-sdk-冲突)
29 * [swift 4.1](#swift-41) 42 * [swift 4.1](#swift-41)
30 43
@@ -33,6 +46,7 @@ @@ -33,6 +46,7 @@
33 > 3.0.6 46 > 3.0.6
34 47
35 - HHMVideoDelegate增加getChatParentView(_ view : UIView),以便开发者在呼叫页面添加自定义view 48 - HHMVideoDelegate增加getChatParentView(_ view : UIView),以便开发者在呼叫页面添加自定义view
  49 + - 增加跳转信息流的接口
36 50
37 > 2.0.2 51 > 2.0.2
38 52
@@ -273,10 +287,39 @@ HHMSDK.default.add(delegate: self) @@ -273,10 +287,39 @@ HHMSDK.default.add(delegate: self)
273 HHMSDK.default.remove(delegate: self) 287 HHMSDK.default.remove(delegate: self)
274 ``` 288 ```
275 289
  290 +## 6. 信息流
  291 +
  292 +
  293 +
  294 +### 6.1. 跳转信息流
  295 +
  296 +```
  297 +HHMSDK.default.skipChatHome()
  298 +```
  299 +
  300 +
  301 +
  302 +### 6.2. 饿了么购药
  303 +
  304 +正常情况下呼叫完成后,如有必要,医生会发送药卡,如需医生发送饿了么药卡,需在呼叫之前调用发送本地定位的接口。
  305 +
  306 +如需关掉该功能只需发送(0,0)的坐标。
  307 +
  308 +```
  309 +HHLocation.default.startLocation(lng: "116.431941", lat: "39.940199") /// 此为测试坐标,需替换为用户本地的坐标
  310 +```
  311 +
  312 +在饿了么购药过程中,会涉及到微信支付和支付宝支付。开发者需在自己的项目主Target中配置对应的回调scheme。
  313 +
  314 +![image-20201117105327060](/Users/chengyanfang/Library/Application Support/typora-user-images/image-20201117105327060.png)
  315 +
  316 +![image-20201117105344490](/Users/chengyanfang/Library/Application Support/typora-user-images/image-20201117105344490.png)
  317 +
  318 +![image-20201117105355509](/Users/chengyanfang/Library/Application Support/typora-user-images/image-20201117105355509.png)
276 319
277 -## 6. 其他配置 320 +## 7. 其他配置
278 321
279 -### 6.1. APNs 322 +### 7.1. APNs
280 323
281 在 appDelegate 中向 SDK 传入 deviceToken 即可。 324 在 appDelegate 中向 SDK 传入 deviceToken 即可。
282 325
@@ -288,7 +331,7 @@ func application(_ application: UIApplication, didRegisterForRemoteNotifications @@ -288,7 +331,7 @@ func application(_ application: UIApplication, didRegisterForRemoteNotifications
288 331
289 *注意:需要上传 APNs 的 p12 文件,请联系我们上传。* 332 *注意:需要上传 APNs 的 p12 文件,请联系我们上传。*
290 333
291 -### 6.2. Background Modes 334 +### 7.2. Background Modes
292 335
293 为了支持用户压后台后音视频的正常使用,需要设置 Background Modes。具体设置如下: 336 为了支持用户压后台后音视频的正常使用,需要设置 Background Modes。具体设置如下:
294 337
@@ -296,7 +339,7 @@ func application(_ application: UIApplication, didRegisterForRemoteNotifications @@ -296,7 +339,7 @@ func application(_ application: UIApplication, didRegisterForRemoteNotifications
296 xxx target -> Capabilities -> Background Modes -> 勾选 Audio,Airplay and Picture in Picture 339 xxx target -> Capabilities -> Background Modes -> 勾选 Audio,Airplay and Picture in Picture
297 ``` 340 ```
298 341
299 -### 6.3. 扩展参数 342 +### 7.3. 扩展参数
300 343
301 为了支持收集渠道日志,SDK支持在初始化时传递自定义参数。 344 为了支持收集渠道日志,SDK支持在初始化时传递自定义参数。
302 345