|
@@ -111,6 +111,13 @@ static id rq_ptObjectModule = nil;
|
|
|
array = [testString componentsSeparatedByString:@"@@"];
|
|
|
[self bindStudentAppCoachIdArr:array];
|
|
|
return;
|
|
|
+ } else if ([testString containsString:@"#iats#"]) {//ning 新增 二维码 扫描 登录
|
|
|
+ //#DECODE##iats#861766043407976;1708670874970
|
|
|
+ testString = [testString substringFromIndex:6];
|
|
|
+ array = [testString componentsSeparatedByString:@";"];
|
|
|
+// /iats-api/api/jsjpNotice
|
|
|
+ [self noticeAppjsjpNoticeArr:array];
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
__block NSString *ptSubjectStr;
|
|
@@ -186,6 +193,35 @@ static id rq_ptObjectModule = nil;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//通知设备登录成功
|
|
|
+- (void)noticeAppjsjpNoticeArr:(NSArray *)array {
|
|
|
+ NSString *muserId = array[0];
|
|
|
+ NSString *timestamp = array[1];
|
|
|
+ //时间戳判断
|
|
|
+ long long this_timestamp = [[NSDate date] timeIntervalSince1970]*1000;
|
|
|
+ if(this_timestamp-[timestamp longLongValue]>60*5*1000){
|
|
|
+ ShowMsg(@"操作超时!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ NSMutableArray *arr = [NSMutableArray array];
|
|
|
+ [arr addPro:@"idcard" Value:RQ_USER_MANAGER.currentUser.loginCode];
|
|
|
+ [arr addPro:@"imei" Value:muserId];
|
|
|
+ [arr addPro:@"status" Value:@"0"];
|
|
|
+ [MBProgressHUD rq_showProgressHUD:@""];
|
|
|
+ [jiaPeiManager requestAnythingWithURL:@"jsjpNotice" array:arr data:nil completion:^(NSDictionary * result) {
|
|
|
+ NSLog(@"dict=%@",result);
|
|
|
+ if(result){
|
|
|
+ int code = [result[@"code"] intValue];
|
|
|
+ if(code==0){
|
|
|
+ //成功
|
|
|
+ NSLog(@"通知设备登录成功");
|
|
|
+ }
|
|
|
+ [RQ_SHARE_FUNCTION showAlertWithMessage:result[@"msg"] completion:nil];
|
|
|
+ }
|
|
|
+ [MBProgressHUD rq_hideHUD];
|
|
|
+ }];
|
|
|
+}
|
|
|
+
|
|
|
//绑定教练id
|
|
|
- (void)bindStudentAppCoachIdArr:(NSArray *)array {
|
|
|
//学员绑定教练ID(新需求) - 2023-07-06
|