wangguolei

fix

Showing 61 changed files with 8 additions and 229 deletions
No preview for this file type
1 Pod::Spec.new do |s| 1 Pod::Spec.new do |s|
2 s.name = 'HHDoctor' 2 s.name = 'HHDoctor'
  3 +<<<<<<< HEAD
3 s.version= "3.1.02" 4 s.version= "3.1.02"
  5 +=======
  6 +s.version= "3.1.0081213"
  7 +>>>>>>> 8e36928fcf36fa846a2a402a9efc0ae36d01efcf
4 s.summary = 'A short description of hhvDoctorSDK.' 8 s.summary = 'A short description of hhvDoctorSDK.'
5 9
6 s.description = <<-DESC 10 s.description = <<-DESC
@@ -14,10 +18,10 @@ Pod::Spec.new do |s| @@ -14,10 +18,10 @@ Pod::Spec.new do |s|
14 s.source = { :git => 'http://code.hh-medic.com/hh_public/hh_doctor_mini.git', :tag => s.version.to_s } 18 s.source = { :git => 'http://code.hh-medic.com/hh_public/hh_doctor_mini.git', :tag => s.version.to_s }
15 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' 19 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
16 20
17 - s.source_files = 'HHDoctor/Classes/**/*'  
18 -# s.header_dir = 'hhvDoctorSDKForOC/Classes/**/*.h'  
19 - s.public_header_files = 'HHDoctor/Classes/PublicHeaders/*.h'  
20 - s.resources = 'HHDoctor/Resources/*.*' 21 + s.source_files = 'HHDoctor/HHDoctor.framework/Headers/*.*'
  22 + # s.header_dir = 'hhvDoctorSDKForOC/Classes/**/*.h'
  23 + # s.public_header_files = 'HHDoctor/HHDoctor.framework/Headers/*.h'
  24 + s.resources = 'HHDoctor/HHDoctor.framework/resource/*.*'
21 25
22 s.vendored_frameworks = 'HHDoctor/*.framework' 26 s.vendored_frameworks = 'HHDoctor/*.framework'
23 # s.static_framework = true 27 # s.static_framework = true
No preview for this file type
No preview for this file type
1 -#ifdef __OBJC__  
2 -#import <UIKit/UIKit.h>  
3 -#else  
4 -#ifndef FOUNDATION_EXPORT  
5 -#if defined(__cplusplus)  
6 -#define FOUNDATION_EXPORT extern "C"  
7 -#else  
8 -#define FOUNDATION_EXPORT extern  
9 -#endif  
10 -#endif  
11 -#endif  
12 -  
13 -#import "HHDoctor.h"  
14 -#import "HHPublicHeader.h"  
15 -#import "HHSDKOptions.h"  
16 -  
17 -FOUNDATION_EXPORT double HHDoctorVersionNumber;  
18 -FOUNDATION_EXPORT const unsigned char HHDoctorVersionString[];  
19 -  
1 -//  
2 -// HHDoctor.h  
3 -// HHDoctor  
4 -//  
5 -// Created by 程言方 on 2021/1/27.  
6 -//  
7 -  
8 -#import "HHSDKOptions.h"  
9 -  
10 -typedef NS_ENUM(NSInteger, HHMCallingState) {  
11 - onStart = 0,  
12 - waitingDoctor,  
13 - callFreeDoctor,  
14 - callConnect,  
15 - didRing,  
16 -};  
17 -  
18 -typedef NS_ENUM(NSInteger, FailCode) {  
19 - loginFail = -6,  
20 - notLogin = -5,  
21 - permision = -4,  
22 - netError = -3,  
23 - fail = -2,  
24 - callMessageFail = -100002,  
25 -};  
26 -  
27 -@protocol HHMVideoDelegate<NSObject>  
28 -  
29 -/**  
30 - * 启动呼叫  
31 - */  
32 -- (void) onStart: (NSString*) orderId;  
33 -  
34 -/**  
35 - * 通话结束  
36 - *  
37 - * @param time 视频时长 单位秒  
38 - */  
39 -- (void) onFinish: (long) time;  
40 -  
41 -/**  
42 - * 呼叫成功,等待医生接受  
43 - */  
44 -- (void) onCallSuccess;  
45 -  
46 -/**  
47 - * 呼叫失败  
48 - * @param code 错误码  
49 - */  
50 -- (void) onFail: (NSInteger) code;  
51 -  
52 -/**  
53 - * 取消呼叫 含 取消排队  
54 - */  
55 -- (void) onCancel;  
56 -  
57 -  
58 -  
59 -@end  
60 -  
61 -  
62 -@interface HHDoctor : NSObject  
63 -  
64 -+ (HHDoctor *) sharedInstance;  
65 -  
66 -- (void) startWithOption : (HHSDKOptions * ) options;  
67 -  
68 -/**  
69 - * 登录  
70 - * @param userToken token 和缓分配token  
71 - * @param completion 完成回调  
72 -*/  
73 -- (void) loginWithUserToken : (NSString *) userToken  
74 - completion :(void (^)(NSString *errorMsg))completion;  
75 -  
76 -/**  
77 - * 发起呼叫  
78 - *  
79 - * 本方法不带UI,需要自己实现选择UI  
80 - *  
81 - * userToken 请传咨询人信息 例如 给本人看 就传本人的userToken 给家庭成员看 就传家庭成员userToken  
82 - * @param userToken 咨询人  
83 - * @param delegate 回调  
84 -*/  
85 -- (void) startCallWithUserToken : (NSString *) userToken delegate: (id<HHMVideoDelegate>) delegate;  
86 -  
87 -/**  
88 - * @param ext 自定义参数  
89 -*/  
90 --(void)setCallExtension:(NSString *)ext;  
91 -  
92 -/**  
93 - * 退出登录  
94 -*/  
95 -- (void) logout;  
96 -  
97 -- (void) switchToDev: (BOOL) isDevelopment;  
98 -  
99 -- (void) excute: (void (^)(id<HHMVideoDelegate> delegate))block;  
100 -  
101 -- (void) remoteMessage: (NSString *) message;  
102 -  
103 -/**  
104 - * 病历详情 地址  
105 - * @param medicId 病历id  
106 - * @param userToken 登录帐号id  
107 - * @param patientUserToken 真实患者id  
108 - * 如果没有成员关系,patientUserToken 和 userToken 可以是一个值  
109 -*/  
110 -- (NSString *) getMedicDetailUrlWithMedicId : (NSString *) medicId userToken: (NSString *) userToken patientUserToken: (NSString *) patientUserToken;  
111 -@end  
112 -  
113 -  
114 -  
1 -//  
2 -// PublicHeader.h  
3 -// hhvDoctorSDK_OC  
4 -//  
5 -// Created by 程言方 on 2021/1/27.  
6 -//  
7 -  
8 -#ifndef PublicHeader_h  
9 -#define PublicHeader_h  
10 -  
11 -#define HHSecBaseURL @"https://sec.hh-medic.com/familyapp"  
12 -  
13 -#define HHTestBaseURL @"https://test.hh-medic.com/familyapp"  
14 -  
15 -#define HHTestMedicDetailBaseURL @"https://test.hh-medic.com"  
16 -  
17 -#define HHSecMedicDetailBaseURL @"https://e.hh-medic.com"  
18 -  
19 -  
20 -#define HHFamilyUpload @"https://sec.hh-medic.com/orderapp/file/file_upload_family"  
21 -  
22 -#define HHScreenWidth [[UIScreen mainScreen] bounds].size.width  
23 -#define HHScreenHeight [[UIScreen mainScreen] bounds].size.height  
24 -  
25 -  
26 -#define HHStatusBarHeight [UIApplication sharedApplication].statusBarFrame.size.height  
27 -  
28 -#endif /* PublicHeader_h */  
1 -//  
2 -// HHSDKOptions.h  
3 -// hhvDoctorSDK_OC  
4 -//  
5 -// Created by 程言方 on 2021/1/27.  
6 -//  
7 -  
8 -@protocol HHImageEngine <NSObject>  
9 -  
10 -- (void) loadImageView : (UIImageView *) imageView placeholder : (UIImage *) placeholder url : (NSString *) url;  
11 -  
12 -@end  
13 -  
14 -@interface HHSDKOptions : NSObject  
15 -/**  
16 - * 是否开启debug  
17 -*/  
18 -@property (nonatomic, assign) BOOL isDebug;  
19 -/**  
20 - * isDevelopment 是测试环境 还是 生产环境 true 为 测试环境 false 为生产  
21 - */  
22 -@property (nonatomic, assign) BOOL isDevelopment;  
23 -/**  
24 - * 和缓分配的唯一id  
25 - */  
26 -@property (nonatomic, strong) NSString * sdkProductId;  
27 -  
28 -@property (nonatomic , weak) id <HHImageEngine> mImageEngine;  
29 -  
30 -/**  
31 - * sdk 扩展统计字段  
32 -*/  
33 -@property (nonatomic, strong) NSString * mExtensionString;  
34 -  
35 -@property (nonatomic, strong) NSString * sdkVersion;  
36 -  
37 -+ (HHSDKOptions *)sharedInstance;  
38 -  
39 -/**  
40 - * 初始化  
41 - *  
42 - * @param sdkProductId 和缓分配的唯一id  
43 - * @param develop 是测试环境 还是 生产环境 true 为 测试环境 false 为生产  
44 - * @param imageEngine 网络图片加载代理  
45 - */  
46 -- (HHSDKOptions *) initWithSdkProductId : (NSString *) sdkProductId isDevelop : (BOOL) develop imageEngine : (id <HHImageEngine>) imageEngine;  
47 -  
48 -- (void) loadConfig : (HHSDKOptions *) options;  
49 -  
50 -@end  
No preview for this file type
1 -framework module HHDoctor {  
2 - umbrella header "HHDoctor-umbrella.h"  
3 -  
4 - export *  
5 - module * { export * }  
6 -}  
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">  
3 -<plist version="1.0">  
4 -<dict>  
5 - <key>HHBundleVersion</key>  
6 - <string>07.18.1924</string>  
7 -</dict>  
8 -</plist>