Commit 51a716f0 authored by Sandy's avatar Sandy

优化许可证答案的提交

parent fa4413dc
......@@ -522,9 +522,6 @@ GXFBottomViewDelegate>
ICRAnswer *answer = answerArr[i];
//找到数据表中的附件
ICRDatabaseFetchBlock fetchBlk = ^FMResultSet *(FMDatabase *db) {
// NSString *sql = [NSString stringWithFormat:@"SELECT *FROM %@ WHERE %@ IN %@ ORDER BY %@ ",[ICRPostAttachment TableName],@"questionUuid",[IBTModel ValuePlaceholdersWithCount:muArr.count],@"addTime"];
// return [db executeQuery:sql withArgumentsInArray:muArr];
//
NSString *sql = [NSString stringWithFormat:@"SELECT * FROM %@ WHERE %@=? AND %@=? AND %@=? ORDER BY %@",[ICRPostAttachment TableName],@"questionUuid",@"plan_uuid",@"store_uuid",@"addTime"];
return [db executeQuery:sql,answer.questionUuid,answer.plan_uuid,answer.store_uuid];
};
......
......@@ -807,6 +807,7 @@ didVideoPickedWithURL:(NSURL *)videoUrl {
[licence.state isEqualToString:@"initial"] ||
[licence.state isEqualToString:@"askforapprove"]) {
[IBTLoadingView hideHUDWithText:@"有未提交或待审批的许可证,请处理完成后重试"];
return;
}
}
void(^succ)(id) = ^(id data) {
......@@ -820,7 +821,6 @@ didVideoPickedWithURL:(NSURL *)videoUrl {
[IBTLoadingView hideHUDWithText:data[@"message"]];
}
};
void(^fail)(id) = ^(id data) {
......
......@@ -91,8 +91,8 @@
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8080/total-server/rest"
//开发环境
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
//#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
//#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
#define HTTP_WEATHER_URL @"http://apis.baidu.com/heweather/weather/free"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment