chengyanfang

fix

No preview for this file type
@@ -11,6 +11,15 @@ @@ -11,6 +11,15 @@
11 11
12 ## 0. 更新日志 12 ## 0. 更新日志
13 13
  14 +> 3.1.0
  15 +
  16 + - 增加购买会员配置
  17 +
  18 + ```
  19 + 配置方式:
  20 + HHSDKOptions.default.mUserCenterOptions.enableBuyService // 默认不支持
  21 + ```
  22 +
14 23
15 > 3.0.8 24 > 3.0.8
16 25
@@ -330,7 +339,39 @@ HHSDKOptions.default.setCallExtension(callExtension: "xxx") @@ -330,7 +339,39 @@ HHSDKOptions.default.setCallExtension(callExtension: "xxx")
330 339
331 340
332 341
333 -### 7.4. 上架 App Store 时,出现 x86_64, i386 架构错误该如何解决? 342 +### 7.4. 支付跳转配置
  343 +
  344 +在使用SDK叮当购药或会员购买服务时,需要为项目配置支付跳转的scheme.
  345 +
  346 +配置步骤如下:
  347 +
  348 +Step1:
  349 +
  350 +在 Targets - Info - URL Types下增加:
  351 +
  352 +![image-20210317133123363](/Users/chengyanfang/Library/Application Support/typora-user-images/image-20210317133123363.png)
  353 +
  354 +![image-20210317133146190](/Users/chengyanfang/Library/Application Support/typora-user-images/image-20210317133146190.png)
  355 +
  356 +Step2:
  357 +
  358 +在AppDelegate下配置如下代码:
  359 +
  360 +```
  361 +func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
  362 +
  363 + if url.scheme == "hh-medic.com" {
  364 + NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WX_H5_PAY"), object: nil)
  365 + return true
  366 + }
  367 +
  368 + return true
  369 + }
  370 +```
  371 +
  372 +
  373 +
  374 +### 7.5. 上架 App Store 时,出现 x86_64, i386 架构错误该如何解决?
334 375
335 该问题是由于 App Store 不支持 x86_64, i386 架构引起的,具体解决方法如下: 376 该问题是由于 App Store 不支持 x86_64, i386 架构引起的,具体解决方法如下:
336 377