This commit is contained in:
pengguangjian 2024-11-08 10:36:28 +08:00
parent 301a615b2c
commit 21d9893afd
13 changed files with 358 additions and 268 deletions

View File

@ -36,98 +36,6 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "F33A2D73-E914-4309-8C86-1BC4FA3BA81D"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "ProductApp/ProductMain/&#x9996;&#x9875;/&#x81ea;&#x5b9a;&#x4e49;&#x76f8;&#x673a;/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "338"
endingLineNumber = "338"
landmarkName = "-bottomAction:"
landmarkType = "7">
<Locations>
<Location
uuid = "F33A2D73-E914-4309-8C86-1BC4FA3BA81D - f0b70fbf7c1b29"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[CamreViewController bottomAction:]"
moduleName = "ProductApp"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/gongzuo/Desktop/%E5%85%AC%E5%8F%B8GIT/%E6%9E%81%E5%85%89%E5%86%99%E4%BD%9C/ProductApp/ProductApp/ProductMain/%E9%A6%96%E9%A1%B5/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9B%B8%E6%9C%BA/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "338"
endingLineNumber = "338">
</Location>
<Location
uuid = "F33A2D73-E914-4309-8C86-1BC4FA3BA81D - 318eb1806ca6068f"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "__36-[CamreViewController bottomAction:]_block_invoke"
moduleName = "ProductApp"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/gongzuo/Desktop/%E5%85%AC%E5%8F%B8GIT/%E6%9E%81%E5%85%89%E5%86%99%E4%BD%9C/ProductApp/ProductApp/ProductMain/%E9%A6%96%E9%A1%B5/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9B%B8%E6%9C%BA/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "339"
endingLineNumber = "339">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "24246768-FB4F-4C9A-9FAF-51A9F99C84C5"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "ProductApp/ProductMain/&#x9996;&#x9875;/&#x81ea;&#x5b9a;&#x4e49;&#x76f8;&#x673a;/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "363"
endingLineNumber = "363"
landmarkName = "-bottomAction:"
landmarkType = "7">
<Locations>
<Location
uuid = "24246768-FB4F-4C9A-9FAF-51A9F99C84C5 - f0b70fbf7c1fe0"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[CamreViewController bottomAction:]"
moduleName = "ProductApp"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/gongzuo/Desktop/%E5%85%AC%E5%8F%B8GIT/%E6%9E%81%E5%85%89%E5%86%99%E4%BD%9C/ProductApp/ProductApp/ProductMain/%E9%A6%96%E9%A1%B5/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9B%B8%E6%9C%BA/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "363"
endingLineNumber = "363">
</Location>
<Location
uuid = "24246768-FB4F-4C9A-9FAF-51A9F99C84C5 - a82b2db259f82353"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "__36-[CamreViewController bottomAction:]_block_invoke_2"
moduleName = "ProductApp"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/gongzuo/Desktop/%E5%85%AC%E5%8F%B8GIT/%E6%9E%81%E5%85%89%E5%86%99%E4%BD%9C/ProductApp/ProductApp/ProductMain/%E9%A6%96%E9%A1%B5/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9B%B8%E6%9C%BA/CamreViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "364"
endingLineNumber = "364">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
@ -147,32 +55,16 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "C2315BAF-37C0-44A6-BB89-CA3A65C178F7" uuid = "3256B2D9-FB36-4C77-B166-F3F35875544A"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "ProductApp/ProductMain/&#x9996;&#x9875;/&#x81ea;&#x5b9a;&#x4e49;&#x76f8;&#x673a;/CamreViewController.m" filePath = "ProductApp/ProductMain/&#x5f15;&#x5bfc;/&#x8bfe;&#x5802;&#x5199;&#x4f5c;/&#x6279;&#x6539;&#x4fe1;&#x606f;/StartKTXZPGDetailViewController.m"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "354" startingLineNumber = "63"
endingLineNumber = "354" endingLineNumber = "63"
landmarkName = "-bottomAction:" landmarkName = "-viewDidLoad"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "3E79A7F2-E55C-4BDB-A68C-0689167DA248"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "ProductApp/ProductMain/&#x5f15;&#x5bfc;/&#x626b;&#x63cf;&#x8bc6;&#x522b;&#x9875;&#x9762;/view/StartKTXZPGView.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "269"
endingLineNumber = "269"
landmarkName = "-createJiLu"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>

View File

@ -27,6 +27,8 @@
#import <UMCommonLog/UMCommonLogHeaders.h> #import <UMCommonLog/UMCommonLogHeaders.h>
#import <UMLink/UMLink.h> #import <UMLink/UMLink.h>
#import "LoginViewController.h"
@interface AppDelegate ()<WXApiDelegate,MobClickLinkDelegate,GeTuiSdkDelegate> @interface AppDelegate ()<WXApiDelegate,MobClickLinkDelegate,GeTuiSdkDelegate>
@end @end
@ -48,10 +50,21 @@
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor]; self.window.backgroundColor = [UIColor whiteColor];
[self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartViewController new]]];
[[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:HomeToosRef]; [[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:HomeToosRef];
[[NSUserDefaults standardUserDefaults] setObject:@"" forKey:DengluZhangHaoTanChuang];
[UserInfoModel setAiChatIsDrawing:0]; [UserInfoModel setAiChatIsDrawing:0];
if([UserInfoModel shareModel].loginState.intValue == -1)
{
[[NSUserDefaults standardUserDefaults] setObject:@"" forKey:UserInfoModelToken];
[self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[LoginViewController new]]];
}
else
{
[self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartViewController new]]];
}
[self.window makeKeyAndVisible]; [self.window makeKeyAndVisible];

View File

@ -185,6 +185,7 @@ static int tabnavHeight;
-(void)tanLoginChuan -(void)tanLoginChuan
{ {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
if([UserInfoModel shareModel].temp.intValue == 1 && ([UserInfoModel shareModel].vip.intValue == 2||[UserInfoModel shareModel].vip.intValue == 3||[UserInfoModel shareModel].vip.intValue == 11 || [UserInfoModel shareModel].vip.intValue == 12)) if([UserInfoModel shareModel].temp.intValue == 1 && ([UserInfoModel shareModel].vip.intValue == 2||[UserInfoModel shareModel].vip.intValue == 3||[UserInfoModel shareModel].vip.intValue == 11 || [UserInfoModel shareModel].vip.intValue == 12))
{ {
AppDelegate *appde = (AppDelegate *)[UIApplication sharedApplication].delegate; AppDelegate *appde = (AppDelegate *)[UIApplication sharedApplication].delegate;
@ -201,6 +202,7 @@ static int tabnavHeight;
}); });
}]; }];
} }
});
} }
#pragma mark - lary #pragma mark - lary

View File

@ -10,6 +10,7 @@
#import "FSTextView.h" #import "FSTextView.h"
#import "AIChatYuYinView.h" #import "AIChatYuYinView.h"
#import "ChatRoomTipsModel.h" #import "ChatRoomTipsModel.h"
#import "NetWorkManager.h"
@interface AIChatBottomView ()<UICollectionViewDelegate,UICollectionViewDataSource> @interface AIChatBottomView ()<UICollectionViewDelegate,UICollectionViewDataSource>
/// ///
@ -162,7 +163,7 @@
[view setBackValue:^(AIChatModel * _Nonnull value) { [view setBackValue:^(AIChatModel * _Nonnull value) {
if(self.backValue) if(self.backValue)
{ {
self.backValue(value); [self juegeModel:value];
} }
}]; }];
_viewYy = view; _viewYy = view;
@ -250,17 +251,37 @@
return; return;
} }
[self endEditing:YES]; [self endEditing:YES];
AIChatModel *modeltemp = [AIChatModel new]; AIChatModel *modeltemp = [AIChatModel new];
modeltemp.text = self.viewtext.text; modeltemp.text = self.viewtext.text;
modeltemp.ismy = YES; modeltemp.ismy = YES;
modeltemp.isnetwork = YES; modeltemp.isnetwork = YES;
[self juegeModel:modeltemp];
}
-(void)juegeModel:(AIChatModel *)model
{
[LoadAlterView show];
[NetWorkManager requestChatCheckData:self content:model.text Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) {
if(state)
{
if(self.backValue) if(self.backValue)
{ {
self.backValue(modeltemp); self.backValue(model);
} }
self.viewtext.text = @""; self.viewtext.text = @"";
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
[LoadAlterView dismiss];
}
}];
} }
-(void)setArrdata:(NSArray *)arrdata -(void)setArrdata:(NSArray *)arrdata
{ {
_arrdata = arrdata; _arrdata = arrdata;

View File

@ -169,6 +169,8 @@
} }
-(void)okAction -(void)okAction
{ {
NSString *strtemp = [self.strshibie stringByReplacingOccurrencesOfString:@" " withString:@""];
if(strtemp.length==0)return;
NSString *strfile = [[AudioRecored manager] stopAudio]; NSString *strfile = [[AudioRecored manager] stopAudio];
AIChatModel *model = [AIChatModel new]; AIChatModel *model = [AIChatModel new];
model.ismy = YES; model.ismy = YES;

View File

@ -8,6 +8,8 @@
#import "BaseViewController.h" #import "BaseViewController.h"
#import "ExampleCorrectList.h" #import "ExampleCorrectList.h"
#import "CorrectSaveDetailModel.h" #import "CorrectSaveDetailModel.h"
#import "WriteCorrectScoreModel.h"
#import "CorrectWriteCorrectModel.h"
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIDetailViewController : BaseViewController @interface StartZWPIDetailViewController : BaseViewController
@ -16,10 +18,18 @@ NS_ASSUME_NONNULL_BEGIN
///引导页数据-作文批改 ///引导页数据-作文批改
@property (nonatomic , strong) ExampleCorrectListDataItems *modelDetailZWPG; @property (nonatomic , strong) ExampleCorrectListDataItems *modelDetailZWPG;
///////正式的数据
///批改的图片 ///批改的图片
@property (nonatomic , strong) NSArray *arrXZImages; @property (nonatomic , strong) NSArray *arrXZImages;
/// ///
@property (nonatomic , strong) NSString *strID; @property (nonatomic , strong) NSString *strID;
///评分
@property (nonatomic , strong) WriteCorrectScoreModelData *modelPF;
///句子数据
@property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems;
///////////
///批改历史 ///批改历史
@property (nonatomic , strong) CorrectSaveDetailModelData *modelHestory; @property (nonatomic , strong) CorrectSaveDetailModelData *modelHestory;

View File

@ -63,59 +63,71 @@
view.arrXZImages = self.arrXZImages; view.arrXZImages = self.arrXZImages;
view.strID = self.strID; view.strID = self.strID;
self.viewShow = view; self.viewShow = view;
if(self.arrXZImages.count>0)
{
[LoadAlterView show];
__block int loadcount = 0;
[NetWorkManager requestCorrectWrite_correct_scoreData:self.view ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
loadcount++;
if(state)
{
view.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
if(loadcount>=3)
{
[LoadAlterView dismiss];
}
}];
[NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) { view.modelPF = self.modelPF;
loadcount++; view.modelContentItems = self.modelContentItems;
if(state)
{
view.modelContentItems = responseObject.data;
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
if(loadcount>=3)
{
[LoadAlterView dismiss];
}
}];
///
[NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { // /*
loadcount++; // ///
if(state) // @property (nonatomic , strong) WriteCorrectScoreModelData *modelPF;
{ // ///
view.arrErrorLocation = responseObject.data; // @property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems;
} // */
else //
{ // if(self.arrXZImages.count>0)
[HXHud showMessage:responseObject.message afterDelayType:1]; // {
} // [LoadAlterView show];
if(loadcount>=3) // __block int loadcount = 0;
{ // [NetWorkManager requestCorrectWrite_correct_scoreData:self.view ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
[LoadAlterView dismiss]; // loadcount++;
} // if(state)
}]; // {
} // view.modelPF = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
//
// [NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) {
// loadcount++;
// if(state)
// {
// view.modelContentItems = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
//
// ///
// [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) {
// loadcount++;
// if(state)
// {
// view.arrErrorLocation = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
// }
} }
-(void)getQuanXian -(void)getQuanXian

View File

@ -34,6 +34,12 @@
/// ///
@property (nonatomic , strong) NSString *strID; @property (nonatomic , strong) NSString *strID;
///
@property (nonatomic , strong) WriteCorrectScoreModelData *modelPF;
///
@property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems;
@property (nonatomic , assign) BOOL isback;
@end @end
@implementation StartKTXZPGView @implementation StartKTXZPGView
@ -156,7 +162,7 @@
/// ///
if(self.arrXZImages.count>0) if(self.arrXZImages.count>0)
{ {
if(self.strID.length==0 && fvalue>=0.98) if(self.modelPF==nil || self.modelContentItems==nil)
{ {
fvalue = 0.98; fvalue = 0.98;
} }
@ -256,6 +262,7 @@
} }
-(void)createJiLu -(void)createJiLu
{ {
///0 1
if(self.type==1||self.type==0) if(self.type==1||self.type==0)
{ {
NSString *sse_type = @"2"; NSString *sse_type = @"2";
@ -267,10 +274,11 @@
if(state) if(state)
{ {
self.strID = responseObject.data.ID; self.strID = responseObject.data.ID;
[self getDetailInfoData];
} }
else else
{ {
[HXHud showMessage:responseObject.message afterDelayType:1]; [HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self.viewController.navigationController popViewControllerAnimated:YES]; [self.viewController.navigationController popViewControllerAnimated:YES];
} }
}]; }];
@ -284,16 +292,99 @@
} }
else else
{ {
[HXHud showMessage:responseObject.message afterDelayType:1]; [HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self.viewController.navigationController popViewControllerAnimated:YES]; [self.viewController.navigationController popViewControllerAnimated:YES];
} }
}]; }];
} }
} }
-(void)getDetailInfoData
{
///0 1
if(self.type==0)
{
if([Tools isStringnil:self.textbook_id].length>0)
{
[NetWorkManager requestCorrectClassroom_correct_scoreData:self ID:self.strID textbook_id:self.textbook_id Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
if(state)
{
self.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self errorBack];
}
}];
}
else
{
[NetWorkManager requestCorrectWrite_correct_scoreData:self ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
if(state)
{
self.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self errorBack];
}
}];
}
[NetWorkManager requestCorrectWrite_correctData:self ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) {
if(state)
{
self.modelContentItems = responseObject.data;
}
else
{
[HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self errorBack];
}
}];
}
else if(self.type==1)
{
[NetWorkManager requestCorrectWrite_correct_scoreData:self ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
if(state)
{
self.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self errorBack];
}
}];
[NetWorkManager requestCorrectWrite_correctData:self ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) {
if(state)
{
self.modelContentItems = responseObject.data;
}
else
{
[HXHud showMessage:@"请上传清晰的图片" afterDelayType:1];
[self errorBack];
}
}];
}
}
-(void)errorBack
{
if(!self.isback)
{
self.isback = YES;
[self.timer invalidate];
self.timer = nil;
[self removeFromSuperview];
}
}
-(void)getJiLu:(NSString *)ID -(void)getJiLu:(NSString *)ID
{ {
[NetWorkManager requestPicAiResultData:self ID:ID Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) { [NetWorkManager requestPicAiResultData:self ID:ID Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) {
@ -322,6 +413,8 @@
vc.strID = self.strID; vc.strID = self.strID;
vc.arrXZImages = self.arrXZImages; vc.arrXZImages = self.arrXZImages;
vc.isquanxian = self.isquanxian; vc.isquanxian = self.isquanxian;
vc.modelPF = self.modelPF;
vc.modelContentItems = self.modelContentItems;
[self.viewController.navigationController pushViewController:vc animated:YES]; [self.viewController.navigationController pushViewController:vc animated:YES];
} }
break; break;
@ -333,6 +426,8 @@
vc.strID = self.strID; vc.strID = self.strID;
vc.arrXZImages = self.arrXZImages; vc.arrXZImages = self.arrXZImages;
vc.isquanxian = self.isquanxian; vc.isquanxian = self.isquanxian;
vc.modelPF = self.modelPF;
vc.modelContentItems = self.modelContentItems;
[self.viewController.navigationController pushViewController:vc animated:YES]; [self.viewController.navigationController pushViewController:vc animated:YES];
} }
break; break;

View File

@ -7,6 +7,9 @@
#import "BaseViewController.h" #import "BaseViewController.h"
#import "TextbookInfoModel.h" #import "TextbookInfoModel.h"
#import "WriteCorrectScoreModel.h"
#import "CorrectWriteCorrectModel.h"
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface StartKTXZPGDetailViewController : BaseViewController @interface StartKTXZPGDetailViewController : BaseViewController
@ -22,6 +25,11 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic , strong) NSString *textbook_id; @property (nonatomic , strong) NSString *textbook_id;
/// ///
@property (nonatomic , strong) NSString *strID; @property (nonatomic , strong) NSString *strID;
///评分
@property (nonatomic , strong) WriteCorrectScoreModelData *modelPF;
///句子数据
@property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems;
///是否有权限 ///是否有权限
@property (nonatomic , assign) BOOL isquanxian; @property (nonatomic , assign) BOOL isquanxian;

View File

@ -58,81 +58,93 @@
_viewShow = view; _viewShow = view;
view.arrXZImages = self.arrXZImages; view.arrXZImages = self.arrXZImages;
view.strID = self.strID; view.strID = self.strID;
if(self.arrXZImages.count>0)
{
[LoadAlterView show];
__block int loadcount = 0;
if([Tools isStringnil:self.textbook_id].length>0)
{
[NetWorkManager requestCorrectClassroom_correct_scoreData:self.view ID:self.strID textbook_id:self.textbook_id Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
loadcount++;
if(state)
{
view.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
if(loadcount>=3)
{
[LoadAlterView dismiss];
}
}];
}
else
{
[NetWorkManager requestCorrectWrite_correct_scoreData:self.view ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
loadcount++;
if(state)
{
view.modelPF = responseObject.data;
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
if(loadcount>=3)
{
[LoadAlterView dismiss];
}
}];
}
[NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) { view.modelPF = self.modelPF;
loadcount++; view.modelContentItems = self.modelContentItems;
if(state)
{
view.modelContentItems = responseObject.data;
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
if(loadcount>=3)
{
[LoadAlterView dismiss];
}
}];
/// // /*
[NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { // ///
loadcount++; // @property (nonatomic , strong) WriteCorrectScoreModelData *modelPF;
if(state) // ///
{ // @property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems;
view.arrErrorLocation = responseObject.data; //
} // */
else //
{ // if(self.arrXZImages.count>0)
[HXHud showMessage:responseObject.message afterDelayType:1]; // {
} // [LoadAlterView show];
if(loadcount>=3) // __block int loadcount = 0;
{ // if([Tools isStringnil:self.textbook_id].length>0)
[LoadAlterView dismiss]; // {
} // [NetWorkManager requestCorrectClassroom_correct_scoreData:self.view ID:self.strID textbook_id:self.textbook_id Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
}]; // loadcount++;
// if(state)
} // {
// view.modelPF = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
// }
// else
// {
// [NetWorkManager requestCorrectWrite_correct_scoreData:self.view ID:self.strID Callback:^(BOOL state, WriteCorrectScoreModel *responseObject, NSString * _Nullable describle) {
// loadcount++;
// if(state)
// {
// view.modelPF = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
// }
//
// [NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) {
// loadcount++;
// if(state)
// {
// view.modelContentItems = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
//
// ///
// [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) {
// loadcount++;
// if(state)
// {
// view.arrErrorLocation = responseObject.data;
// }
// else
// {
// [HXHud showMessage:responseObject.message afterDelayType:1];
// }
// if(loadcount>=3)
// {
// [LoadAlterView dismiss];
// }
// }];
//
// }
} }
-(void)getQuanXian -(void)getQuanXian
{ {

View File

@ -450,6 +450,7 @@
} }
-(void)getdata -(void)getdata
{ {
[LoadAlterView show];
[self nomoData]; [self nomoData];
NSMutableDictionary *dicpush = [NSMutableDictionary new]; NSMutableDictionary *dicpush = [NSMutableDictionary new];

View File

@ -473,9 +473,30 @@
{ {
self.arrTools = responseObject.data.items; self.arrTools = responseObject.data.items;
[self.tableView reloadData]; [self.tableView reloadData];
if(responseObject.data.items.count==0)
{
[self pushCollectInit];
}
} }
}]; }];
} }
-(void)pushCollectInit
{
[NetWorkManager requestToolsFavInitData:self.view Callback:^(BOOL state, id _Nullable responseObject, NSString * _Nullable describle) {
if(state)
{
[NetWorkManager requestToolsFavData:self.view page:1 size:@"100" Callback:^(BOOL state, ToolsListModel *responseObject, NSString * _Nullable describle) {
[self.tableView.mj_header endRefreshing];
if(state)
{
self.arrTools = responseObject.data.items;
[self.tableView reloadData];
}
}];
}
}];
}
-(void)getFanWen -(void)getFanWen
{ {
if([UserInfoModel shareModel].identityType.intValue==3)return; if([UserInfoModel shareModel].identityType.intValue==3)return;
@ -494,6 +515,7 @@
}]; }];
} }
-(void)updateBtShow -(void)updateBtShow
{ {
if([UserInfoModel shareModel].identityType.intValue==3) if([UserInfoModel shareModel].identityType.intValue==3)