Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMAILab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMAILab
Commits
32358719
Commit
32358719
authored
May 21, 2020
by
jz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
265f9062
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
15 deletions
+17
-15
GMAIUploadImagesManager.h
GMAILab/Classes/AddClass/GMAIUploadImagesManager.h
+4
-4
GMAIUploadImagesManager.m
GMAILab/Classes/AddClass/GMAIUploadImagesManager.m
+1
-1
GMALBaseRequest.h
GMAILab/Classes/AddClass/GMALNetworking/GMALBaseRequest.h
+2
-2
GMAISearchNavigationView.h
...ses/ToFace/VideoTelephone/view/GMAISearchNavigationView.h
+5
-6
GMGrabLoadingView.h
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.h
+2
-1
GMGrabLoadingView.m
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.m
+1
-0
GMBusinessReportResultController.m
...ngTable/ViewController/GMBusinessReportResultController.m
+2
-1
No files found.
GMAILab/Classes/AddClass/GMAIUploadImagesManager.h
View file @
32358719
...
...
@@ -8,9 +8,9 @@
#import <Foundation/Foundation.h>
#import <GMbase/GMObject.h>
typedef
NS_ENUM
(
NSUInteger
,
GMTokenType
)
{
GMTokenTypeImage
=
1
,
// 图片
GMTokenTypeViedo
,
// 视频
typedef
NS_ENUM
(
NSUInteger
,
GM
AI
TokenType
)
{
GM
AI
TokenTypeImage
=
1
,
// 图片
GM
AI
TokenTypeViedo
,
// 视频
};
/** @brief 返回结果Block */
...
...
@@ -24,7 +24,7 @@ typedef void(^UploadFinishedBlock)(BOOL result, NSString *message);
-
(
NSString
*
)
createImagePath
;
// 1: '图片' 2:'视频'
-
(
void
)
getTokenWithType
:(
GMTokenType
)
type
resultBlock
:(
UploadFinishedBlock
)
resultBlock
;
-
(
void
)
getTokenWithType
:(
GM
AI
TokenType
)
type
resultBlock
:(
UploadFinishedBlock
)
resultBlock
;
-
(
void
)
uploadImages
:(
NSArray
*
)
images
imageToken
:(
NSString
*
)
imageToken
resultBlock
:(
UploadFinishedBlock
)
resultBlock
;
...
...
GMAILab/Classes/AddClass/GMAIUploadImagesManager.m
View file @
32358719
...
...
@@ -33,7 +33,7 @@ static GMAIUploadImagesManager *shareInstance = nil;
return
shareInstance
;
}
-
(
void
)
getTokenWithType
:
(
GMTokenType
)
type
resultBlock
:
(
UploadFinishedBlock
)
resultBlock
{
-
(
void
)
getTokenWithType
:
(
GM
AI
TokenType
)
type
resultBlock
:
(
UploadFinishedBlock
)
resultBlock
{
NSDictionary
*
params
=
@{
@"token_type"
:
@
(
type
)};
[
GMNetworking
requestOCWithApi
:
@"/api/app/upload_token"
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
response
)
{
if
(
response
.
isSuccess
)
{
...
...
GMAILab/Classes/AddClass/GMALNetworking/GMALBaseRequest.h
View file @
32358719
...
...
@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
#import "GMALNetworkMacros.h"
//
#import <GMBase/GMObject.h>
#import <GMBase/GMObject.h>
//@import GMBase;
typedef
NS_ENUM
(
NSInteger
,
GMRequestMethod
)
{
GMRequestMethodGET
=
0
,
...
...
@@ -21,7 +21,7 @@ typedef NS_ENUM(NSInteger, GMRequestMethod) {
NS_ASSUME_NONNULL_BEGIN
@interface
GMRequestObject
:
NS
Object
@interface
GMRequestObject
:
GM
Object
@property
(
nonatomic
,
copy
)
NSString
*
offset
;
@property
(
nonatomic
,
assign
)
NSInteger
page
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMAISearchNavigationView.h
View file @
32358719
...
...
@@ -6,9 +6,12 @@
// Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//
#import "GMLibraryHeader.h"
@protocol
GMSearchNavigationViewDelegate
;
@protocol
GMAISearchNavigationViewDelegate
<
NSObject
>
-
(
void
)
searchNavigationCancelButtonClick
;
@end
@interface
GMAISearchNavigationView
:
GMView
@property
(
nonatomic
,
assign
)
id
<
GMSearchNavigationViewDelegate
>
delegate
;
@property
(
nonatomic
,
assign
)
id
<
GM
AI
SearchNavigationViewDelegate
>
delegate
;
@property
(
nonatomic
,
assign
)
BOOL
showCancelButton
;
@property
(
nonatomic
,
strong
)
UITextField
*
textField
;
...
...
@@ -20,7 +23,3 @@
-
(
BOOL
)
becomeFirstResponder
;
-
(
BOOL
)
resignFirstResponder
;
@end
@protocol
GMSearchNavigationViewDelegate
<
NSObject
>
-
(
void
)
searchNavigationCancelButtonClick
;
@end
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.h
View file @
32358719
...
...
@@ -5,9 +5,10 @@
// Created by Jessica on 2020/3/9.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
#import "Lottie.h"
#import "GMLibraryHeader.h"
@class
LOTAnimationView
;
@interface
GMGrabLoadingAnimaitionView
:
GMView
@property
(
nonatomic
,
strong
)
LOTAnimationView
*
animationView
;
@end
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.m
View file @
32358719
...
...
@@ -8,6 +8,7 @@
#import "GMGrabLoadingView.h"
#import "GMTelephoneProxy.h"
#import <Lottie/Lottie.h>
@interface
GMGrabLoadingAnimaitionView
()
@property
(
nonatomic
,
strong
)
UILabel
*
textLabel
;
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMBusinessReportResultController.m
View file @
32358719
...
...
@@ -10,6 +10,7 @@
#import "QiniuSDK.h"
#import "RequestHeader.h"
#import "GMAIUploadImagesManager.h"
//#import "GMUploadImagesManager.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMbase/GMBaseTool.h>
...
...
@@ -57,7 +58,7 @@
self
.
shareUserId
=
SafeString
(
dict
[
@"userId"
]);
self
.
shareImage
=
[
UIImage
imageWithData
:[[
NSData
alloc
]
initWithBase64EncodedString
:
imageString
options
:
NSDataBase64DecodingIgnoreUnknownCharacters
]];
__block
NSString
*
key
=
[[
GMAIUploadImagesManager
shareInstance
]
createImagePath
];
[[
GMAIUploadImagesManager
shareInstance
]
getTokenWithType
:
GMTokenTypeImage
resultBlock
:
^
(
BOOL
result
,
NSString
*
message
)
{
[[
GMAIUploadImagesManager
shareInstance
]
getTokenWithType
:
GM
AI
TokenTypeImage
resultBlock
:
^
(
BOOL
result
,
NSString
*
message
)
{
if
(
result
)
{
NSData
*
imageData
=
UIImageJPEGRepresentation
(
self
.
shareImage
,
1
);
QNUploadManager
*
upManager
=
[[
QNUploadManager
alloc
]
init
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment