Commit cea7aa3f authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent d45682c9
No preview for this file type
This diff is collapsed.
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "launch2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "launch2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "launch1@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "launch1@3x.png", "filename" : "编组@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
...@@ -16,25 +16,14 @@ ...@@ -16,25 +16,14 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch2" translatesAutoresizingMaskIntoConstraints="NO" id="2f0-Ky-54O"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_icon" translatesAutoresizingMaskIntoConstraints="NO" id="dC3-SO-tgb">
<rect key="frame" x="0.0" y="347.5" width="414" height="548.5"/> <rect key="frame" x="146" y="173.5" width="122" height="146"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch1" translatesAutoresizingMaskIntoConstraints="NO" id="QBu-ql-K1q">
<rect key="frame" x="0.0" y="44" width="414" height="303.5"/>
<constraints>
<constraint firstAttribute="width" secondItem="QBu-ql-K1q" secondAttribute="height" multiplier="15:11" id="Nv9-UH-cli"/>
</constraints>
</imageView> </imageView>
</subviews> </subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints> <constraints>
<constraint firstItem="QBu-ql-K1q" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="1Sf-lB-DMr"/> <constraint firstItem="dC3-SO-tgb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" multiplier="0.55" id="2Va-Mo-5Ql"/>
<constraint firstItem="2f0-Ky-54O" firstAttribute="top" secondItem="QBu-ql-K1q" secondAttribute="bottom" id="CvV-Lb-Of9"/> <constraint firstItem="dC3-SO-tgb" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="ssc-pU-r2l"/>
<constraint firstItem="QBu-ql-K1q" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="EgB-et-jcz"/>
<constraint firstAttribute="bottom" secondItem="2f0-Ky-54O" secondAttribute="bottom" id="JDQ-R5-K31"/>
<constraint firstItem="2f0-Ky-54O" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="THF-M2-dGE"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="2f0-Ky-54O" secondAttribute="trailing" id="Yin-AY-LER"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="QBu-ql-K1q" secondAttribute="trailing" id="vOk-AG-Smp"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view> </view>
...@@ -45,7 +34,6 @@ ...@@ -45,7 +34,6 @@
</scene> </scene>
</scenes> </scenes>
<resources> <resources>
<image name="launch1" width="360" height="263.5"/> <image name="launch_icon" width="122" height="146"/>
<image name="launch2" width="360" height="376.5"/>
</resources> </resources>
</document> </document>
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
__block int count; __block int count;
} }
@property (nonatomic, assign) BOOL newSystemMsg;
@end @end
#define refreshCount 30 #define refreshCount 30
...@@ -88,7 +90,7 @@ ...@@ -88,7 +90,7 @@
break; break;
} }
} else { } else {
[AlertControllerTool alertControllerWithTitle:@"定位服务未开启,请进入系统[设置]> [隐私] > [定位服务]中打开开关,并允许使用定位服务" message:@"知迹绘制您的轨迹需要您开启定位服务" cancelTitle:@"去设置" cancelBlock:^{ [AlertControllerTool alertControllerWithTitle:@"定位服务未开启,请进入系统[设置]> [隐私] > [定位服务]中打开开关,并允许使用定位服务" message:@"海豚守护绘制您的轨迹需要您开启定位服务" cancelTitle:@"去设置" cancelBlock:^{
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
...@@ -316,6 +318,7 @@ ...@@ -316,6 +318,7 @@
} }
[MobClick event:@"home_message_click"]; [MobClick event:@"home_message_click"];
ZJXiaoXiViewController *vc = [[ZJXiaoXiViewController alloc] init]; ZJXiaoXiViewController *vc = [[ZJXiaoXiViewController alloc] init];
vc.newSystemMsg = self.newSystemMsg;
[self.navigationController pushViewController:vc animated:YES]; [self.navigationController pushViewController:vc animated:YES];
} }
...@@ -371,6 +374,24 @@ ...@@ -371,6 +374,24 @@
NSLog(@"失败"); NSLog(@"失败");
}]; }];
[[TQNetworkTools shared] getWithAction:userHasNewSystemMsg parameters:@{} success:^(id _Nonnull response) {
if([[response objectForKey:@"status"] integerValue] == 200){
NSString * has = [NSString stringWithFormat:@"%@", [[[response objectForKey:@"result"] objectForKey:@"data"] objectForKey:@"has"]];
if (has && ![has isEqualToString:@"0"]) {
self.xiaoXiRedPoint.hidden = NO;
self.newSystemMsg = YES;
}else{
self.xiaoXiRedPoint.hidden = YES;
}
}else{
[MBProgressHUD showError:[response objectForKey:@"msg"] toView:self.view];
}
} failure:^(NSError * _Nonnull error) {
self.xiaoXiRedPoint.hidden = YES;
NSLog(@"失败");
}];
} }
#pragma mark 好友列表 #pragma mark 好友列表
...@@ -470,10 +491,6 @@ ...@@ -470,10 +491,6 @@
// model.locationType 未知 // model.locationType 未知
model.time = [self currentDate]; model.time = [self currentDate];
NSDictionary * modelDic = [model dictionaryWithValuesForKeys:@[@"address", @"city", @"latitude", @"longitude", @"time"]];
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:modelDic options:NSJSONWritingPrettyPrinted error:nil];
NSString * string = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
//电量 //电量
[UIDevice currentDevice].batteryMonitoringEnabled = YES; [UIDevice currentDevice].batteryMonitoringEnabled = YES;
double deviceLevel = [UIDevice currentDevice].batteryLevel; double deviceLevel = [UIDevice currentDevice].batteryLevel;
...@@ -482,7 +499,13 @@ ...@@ -482,7 +499,13 @@
power = @"100"; //未识别 power = @"100"; //未识别
} }
[[TQNetworkTools shared] postWithAction:syncLocationDataLast parameters:@{@"LocationSyncData":string, @"power":power} success:^(id _Nonnull response) { NSMutableDictionary * modelDic = [model dictionaryWithValuesForKeys:@[@"address", @"city", @"latitude", @"longitude", @"time"]].mutableCopy;
[modelDic setDictionary:@{@"power":power}];
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:modelDic options:NSJSONWritingPrettyPrinted error:nil];
NSString * string = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
[[TQNetworkTools shared] postWithAction:syncLocationDataLast parameters:@{@"LocationSyncData":string} success:^(id _Nonnull response) {
NSString *result = [[NSString alloc] initWithData:response NSString *result = [[NSString alloc] initWithData:response
encoding:NSUTF8StringEncoding]; encoding:NSUTF8StringEncoding];
......
...@@ -608,7 +608,7 @@ ...@@ -608,7 +608,7 @@
- (void)showAlertViewAboutNotAuthorAccessContact{ - (void)showAlertViewAboutNotAuthorAccessContact{
[AlertControllerTool alertControllerWithTitle:@"请授权通讯录权限" message:@"请在iPhone的\"设置-隐私-通讯录\"选项中,允许知迹访问你的通讯录" cancelTitle:@"好的" cancelBlock:nil finishBlock:nil]; [AlertControllerTool alertControllerWithTitle:@"请授权通讯录权限" message:@"请在iPhone的\"设置-隐私-通讯录\"选项中,允许海豚守护访问你的通讯录" cancelTitle:@"好的" cancelBlock:nil finishBlock:nil];
} }
- (void)openContact{ - (void)openContact{
......
...@@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface ZJXiaoXiViewController : ZJBaseViewController @interface ZJXiaoXiViewController : ZJBaseViewController
@property (nonatomic, assign) BOOL newSystemMsg;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -13,16 +13,25 @@ ...@@ -13,16 +13,25 @@
#import "ZJUserInfoManager.h" #import "ZJUserInfoManager.h"
#import "ZJFriendMessageModel.h" #import "ZJFriendMessageModel.h"
#import "ZJUserInfoManager.h" #import "ZJUserInfoManager.h"
#import "ZJSystemMessageCell.h"
#import "ZJSystemMessageModel.h"
typedef enum : NSUInteger {
DGSystemMsgType,
DGFriendMsgType,
} DGMsgType;
@interface ZJXiaoXiViewController ()<UITableViewDataSource, UITableViewDelegate> @interface ZJXiaoXiViewController ()<UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, strong) ZJXiaoxiView *xiaoXiView; @property (nonatomic, strong) ZJXiaoxiView *xiaoXiView;
@property (nonatomic, strong) NSMutableArray<ZJFriendMessageModel *> *dataArray; @property (nonatomic, strong) NSMutableArray<ZJFriendMessageModel *> *dataArray;
@property (nonatomic, strong) NSMutableArray<ZJFriendMessageModel *> *systemDataArray; @property (nonatomic, strong) NSMutableArray<ZJSystemMessageModel *> *systemDataArray;
@property (nonatomic, strong) NSMutableArray * currentDataArray; @property (nonatomic, strong) NSMutableArray * currentDataArray;
@property (nonatomic, strong) ZJBasetableView *xiaoXiTableView; @property (nonatomic, strong) ZJBasetableView *xiaoXiTableView;
@property (nonatomic, strong) UIView * lineView; @property (nonatomic, strong) UIView * lineView;
@property (nonatomic, assign) DGMsgType msgType;
@end @end
static NSString *ID = @"xiaoXi"; static NSString *ID = @"xiaoXi";
...@@ -39,6 +48,7 @@ static NSString *ID = @"xiaoXi"; ...@@ -39,6 +48,7 @@ static NSString *ID = @"xiaoXi";
self.navigationItem.title = @"消息"; self.navigationItem.title = @"消息";
self.view.backgroundColor = [UIColor whiteColor]; self.view.backgroundColor = [UIColor whiteColor];
_msgType = DGFriendMsgType;
[self setUI]; [self setUI];
[self loadData]; [self loadData];
[self userMsgRead]; [self userMsgRead];
...@@ -77,7 +87,7 @@ static NSString *ID = @"xiaoXi"; ...@@ -77,7 +87,7 @@ static NSString *ID = @"xiaoXi";
for (NSDictionary * dic in response[@"result"][@"data"]) { for (NSDictionary * dic in response[@"result"][@"data"]) {
ZJFriendMessageModel * model = [[ZJFriendMessageModel alloc] init]; ZJSystemMessageModel * model = [[ZJSystemMessageModel alloc] init];
[model setValuesForKeysWithDictionary:dic]; [model setValuesForKeysWithDictionary:dic];
[self.systemDataArray addObject:model]; [self.systemDataArray addObject:model];
} }
...@@ -111,7 +121,7 @@ static NSString *ID = @"xiaoXi"; ...@@ -111,7 +121,7 @@ static NSString *ID = @"xiaoXi";
NSArray *segmentedArray = [NSArray arrayWithObjects:@"好友申请", @"系统通知",nil]; NSArray *segmentedArray = [NSArray arrayWithObjects:@"好友申请", @"系统通知",nil];
UIButton * button; UIButton * button;
for (int count = 0; count < 2; count++) { for (int count = 0; count < segmentedArray.count; count++) {
UIButton * btn = [[UIButton alloc] initWithFrame:CGRectMake(0+count*116, 6, 116, 30)]; UIButton * btn = [[UIButton alloc] initWithFrame:CGRectMake(0+count*116, 6, 116, 30)];
// [btn setTitle:segmentedArray[count] forState:(UIControlStateNormal)]; // [btn setTitle:segmentedArray[count] forState:(UIControlStateNormal)];
// [btn setTitleColor:kColorWithRGB(34, 34, 34) forState:UIControlStateNormal]; // [btn setTitleColor:kColorWithRGB(34, 34, 34) forState:UIControlStateNormal];
...@@ -134,6 +144,9 @@ static NSString *ID = @"xiaoXi"; ...@@ -134,6 +144,9 @@ static NSString *ID = @"xiaoXi";
[btn addSubview:point]; [btn addSubview:point];
point.tag = 0xc8+count; point.tag = 0xc8+count;
point.hidden = YES; point.hidden = YES;
if (self.newSystemMsg && count==segmentedArray.count-1) {
point.hidden = NO;
}
} }
_lineView = [[UIView alloc] initWithFrame:CGRectMake(segmentBgView.frame.size.width/8, CGRectGetMaxY(button.frame), segmentBgView.frame.size.width/4, 2)]; _lineView = [[UIView alloc] initWithFrame:CGRectMake(segmentBgView.frame.size.width/8, CGRectGetMaxY(button.frame), segmentBgView.frame.size.width/4, 2)];
...@@ -152,8 +165,10 @@ static NSString *ID = @"xiaoXi"; ...@@ -152,8 +165,10 @@ static NSString *ID = @"xiaoXi";
point.hidden = YES; point.hidden = YES;
if (sender.tag - 0x64 == 0) { if (sender.tag - 0x64 == 0) {
_msgType = DGFriendMsgType;
_currentDataArray = self.dataArray; _currentDataArray = self.dataArray;
}else{ }else{
_msgType = DGSystemMsgType;
_currentDataArray = self.systemDataArray; _currentDataArray = self.systemDataArray;
} }
[self.xiaoXiTableView reloadData]; [self.xiaoXiTableView reloadData];
...@@ -164,6 +179,9 @@ static NSString *ID = @"xiaoXi"; ...@@ -164,6 +179,9 @@ static NSString *ID = @"xiaoXi";
} }
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell * cell;
if (_msgType == DGFriendMsgType) {
ZJXiaoXiTableViewCell *xiaoXiCell = [tableView dequeueReusableCellWithIdentifier:ID forIndexPath:indexPath]; ZJXiaoXiTableViewCell *xiaoXiCell = [tableView dequeueReusableCellWithIdentifier:ID forIndexPath:indexPath];
xiaoXiCell.model = self.currentDataArray[indexPath.row]; xiaoXiCell.model = self.currentDataArray[indexPath.row];
...@@ -186,9 +204,23 @@ static NSString *ID = @"xiaoXi"; ...@@ -186,9 +204,23 @@ static NSString *ID = @"xiaoXi";
}; };
}; };
cell = xiaoXiCell;
}else{
ZJSystemMessageModel * model = self.currentDataArray[indexPath.row];
ZJSystemMessageCell * systemCell = [tableView dequeueReusableCellWithIdentifier:@"ZJSystemMessageCell" forIndexPath:indexPath];
[systemCell.headerImV sd_setImageWithURL:[NSURL URLWithString:model.iconUrl]];
systemCell.titleLab.text = model.remindUser;
systemCell.timeLab.text = model.createdAt;
systemCell.desLab.text = model.remark;
cell = systemCell;
}
xiaoXiCell.selectionStyle = UITableViewCellSelectionStyleNone; cell.selectionStyle = UITableViewCellSelectionStyleNone;
return xiaoXiCell; return cell;
} }
#pragma mark 同意好友邀请 acceptBtn #pragma mark 同意好友邀请 acceptBtn
......
//
// ZJSystemMessageModel.h
// Dolphins
//
// Created by 明津李 on 2020/7/30.
// Copyright © 2020 Company. All rights reserved.
//
#import "BaseModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface ZJSystemMessageModel : BaseModel
@property (nonatomic, copy) NSString * createdAt;
@property (nonatomic, copy) NSString * iconUrl;
@property (nonatomic, copy) NSString * id;
@property (nonatomic, copy) NSString * remark;
@property (nonatomic, copy) NSString * remindName;
@property (nonatomic, copy) NSString * remindUser;
@property (nonatomic, copy) NSString * uid;
@end
NS_ASSUME_NONNULL_END
//
// ZJSystemMessageModel.m
// Dolphins
//
// Created by 明津李 on 2020/7/30.
// Copyright © 2020 Company. All rights reserved.
//
#import "ZJSystemMessageModel.h"
@implementation ZJSystemMessageModel
@end
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
self.tongYButton = [UIButton buttonWithType:UIButtonTypeCustom]; self.tongYButton = [UIButton buttonWithType:UIButtonTypeCustom];
// self.tongYButton.backgroundColor = [UIColor redColor]; // self.tongYButton.backgroundColor = [UIColor redColor];
self.tongYButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; self.tongYButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
[self.tongYButton setTitle:@"购买前请先阅读并同意《知迹付费会员服务协议》" forState:0]; [self.tongYButton setTitle:@"购买前请先阅读并同意《海豚守护付费会员服务协议》" forState:0];
[self.tongYButton setTitleColor:[UIColor colorWithHex:0x666666] forState:UIControlStateNormal]; [self.tongYButton setTitleColor:[UIColor colorWithHex:0x666666] forState:UIControlStateNormal];
[self.tongYButton.titleLabel setFont:[UIFont systemFontOfSize:KFont(13)]]; [self.tongYButton.titleLabel setFont:[UIFont systemFontOfSize:KFont(13)]];
[self.beiJingView addSubview:self.tongYButton]; [self.beiJingView addSubview:self.tongYButton];
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone; _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_tableView.tableFooterView = [UIView new]; _tableView.tableFooterView = [UIView new];
[_tableView registerNib:[UINib nibWithNibName:@"ZJCoulometricRemindCell" bundle:nil] forCellReuseIdentifier:@"ZJCoulometricRemindCell"]; [_tableView registerNib:[UINib nibWithNibName:@"ZJCoulometricRemindCell" bundle:nil] forCellReuseIdentifier:@"ZJCoulometricRemindCell"];
} }
- (void)getDataSource{ - (void)getDataSource{
...@@ -86,23 +87,37 @@ ...@@ -86,23 +87,37 @@
sender.selected = !sender.selected; sender.selected = !sender.selected;
ZJElectricalModel * model = self.friendDataSource[sender.tag-0x64]; ZJElectricalModel * model = self.friendDataSource[sender.tag-0x64];
[[TQNetworkTools shared] postWithAction:userRemindInfoSet parameters:@{@"typeId":@"1", @"status":sender.selected?@"1":@"0", @"friendId":[NSString stringWithFormat:@"%ld", (long)model.friendId], @"id":[NSString stringWithFormat:@"%ld", (long)model.id]} success:^(id _Nonnull response) { NSMutableDictionary * modelDic = @{@"typeId":@1, @"status":sender.selected?@1:@0, @"friendId":@(model.friendId), @"id":@(model.id)}.mutableCopy;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:modelDic options:NSJSONWritingPrettyPrinted error:nil];
NSString * string = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
[[TQNetworkTools shared] postWithAction:userRemindInfoSet parameters:@{@"":string} success:^(id _Nonnull response) {
NSString *result = [[NSString alloc] initWithData:response NSString *result = [[NSString alloc] initWithData:response
encoding:NSUTF8StringEncoding]; encoding:NSUTF8StringEncoding];
NSData * data = [result dataUsingEncoding:NSUTF8StringEncoding]; NSData * data = [result dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary * responseDict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil]; NSDictionary * responseDict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
ZJCoulometricRemindCell * cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:sender.tag-0x64 inSection:0]];
if([[responseDict objectForKey:@"status"] integerValue] == 200){ if([[responseDict objectForKey:@"status"] integerValue] == 200){
NSLog(@"success"); NSLog(@"success");
if (sender.selected) {
[MBProgressHUD showSuccess:@"低电量提醒已开启"];
cell.remindLab.text = @"已设置提醒";
model.status = 1;
}else{ }else{
[MBProgressHUD showSuccess:@"低电量提醒已关闭"];
cell.remindLab.text = @"未设置提醒";
model.status = 0;
}
}else{
[MBProgressHUD showError:[responseDict objectForKey:@"msg"]];
} }
} failure:^(NSError * _Nonnull error) { } failure:^(NSError * _Nonnull error) {
[MBProgressHUD showError:@"请稍后再试"];
}]; }];
} }
#pragma mark tableView delegate #pragma mark tableView delegate
......
...@@ -69,7 +69,7 @@ class ZJLocationAttentionVC: BaseViewController { ...@@ -69,7 +69,7 @@ class ZJLocationAttentionVC: BaseViewController {
self.locationTableView.dataSource = self self.locationTableView.dataSource = self
// maskBgView.isHidden = currentFriendModel != nil // maskBgView.isHidden = currentFriendModel != nil
maskBgView.isHidden = self.locationRemindDataSource.count != 0 maskBgView.isHidden = true
addLongPres() addLongPres()
} }
...@@ -357,9 +357,10 @@ extension ZJLocationAttentionVC { ...@@ -357,9 +357,10 @@ extension ZJLocationAttentionVC {
} }
self.currentFriendModel = self.headerFriendsDataSource?.first self.currentFriendModel = self.headerFriendsDataSource?.first
self.updataUI()
if self.currentFriendModel != nil { if self.currentFriendModel != nil {
self.getSingleFriendLocationRemindList(self.currentFriendModel) self.getSingleFriendLocationRemindList(self.currentFriendModel)
}else{
self.updataUI()
} }
}else{ }else{
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -26,7 +24,7 @@ ...@@ -26,7 +24,7 @@
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请确定对方是否授权知迹位置权限" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RiW-bm-Ym2"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请确定对方是否授权海豚守护位置权限" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RiW-bm-Ym2">
<rect key="frame" x="0.0" y="63" width="342" height="17"/> <rect key="frame" x="0.0" y="63" width="342" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment version="4368" identifier="iOS"/> <deployment version="4368" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
...@@ -20,12 +19,12 @@ ...@@ -20,12 +19,12 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="74Z-43-LHV"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="74Z-43-LHV">
<rect key="frame" x="0.0" y="44" width="414" height="818"/> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fSh-sX-R0o"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fSh-sX-R0o">
<rect key="frame" x="0.0" y="0.0" width="414" height="36"/> <rect key="frame" x="0.0" y="0.0" width="414" height="36"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="为了您能更好地体验知迹App,请进行以下设置:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="57c-sW-NKG"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="为了您能更好地体验海豚守护App,请进行以下设置:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="57c-sW-NKG">
<rect key="frame" x="14.5" y="0.0" width="399.5" height="36"/> <rect key="frame" x="14.5" y="0.0" width="399.5" height="36"/>
<color key="backgroundColor" red="0.67183357480000006" green="0.73134952779999995" blue="0.8706133962" alpha="1" colorSpace="custom" customColorSpace="displayP3"/> <color key="backgroundColor" red="0.67183357480000006" green="0.73134952779999995" blue="0.8706133962" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<constraints> <constraints>
...@@ -46,8 +45,8 @@ ...@@ -46,8 +45,8 @@
<constraint firstAttribute="height" constant="36" id="mGl-Xg-BFq"/> <constraint firstAttribute="height" constant="36" id="mGl-Xg-BFq"/>
</constraints> </constraints>
</view> </view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认对方没有删除知迹" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FTA-M6-PwX"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认对方没有删除海豚守护" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FTA-M6-PwX">
<rect key="frame" x="14.5" y="65" width="183.5" height="21"/> <rect key="frame" x="14.5" y="65" width="220.5" height="21"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
<nil key="textColor"/> <nil key="textColor"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -87,7 +86,7 @@ mbsK5b2VAw ...@@ -87,7 +86,7 @@ mbsK5b2VAw
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="46g-dc-NS9"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="46g-dc-NS9">
<rect key="frame" x="14.5" y="194" width="324.5" height="33.5"/> <rect key="frame" x="14.5" y="194" width="324.5" height="33.5"/>
<string key="text">如果Ta关闭了位置权限,请让Ta前往设置&gt;权限管理 <string key="text">如果Ta关闭了位置权限,请让Ta前往设置&gt;权限管理
&gt;知迹里开启位置权限。</string> &gt;海豚守护里开启位置权限。</string>
<fontDescription key="fontDescription" type="system" pointSize="14"/> <fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
//neiRongLabel //neiRongLabel
NSString *str = @" 知迹APP需要双方安装并加好友授权同意,APP付费方即可时刻关注对方的位置信息。\n 注册为知迹会员或接受付费会员的好友邀请意味着 您将向平台和该付费会员提供地理位置,行为轨迹,高度等隐私信息。您正在使用的产品/服务及其功能将会收集、储存和使用您的相关信息,包括但不限于您的GPS定位、设备信息、手机通讯录等,您将受到《用户协议》和《隐私政策》的约束。您点击类似“同意并继续”按钮后或进行主动勾选同 义本协议等操作后,即表示您充分理解隐私政策内 容以及上述描述,并已同意授权平台按照隐私政策 内容合法收集、储存和使用您的个人信息。为保护 您的合法权益,请认真阅读并充分理解《隐私政策》内容。"; NSString *str = @" 海豚守护APP需要双方安装并加好友授权同意,APP付费方即可时刻关注对方的位置信息。\n 注册为海豚守护会员或接受付费会员的好友邀请意味着 您将向平台和该付费会员提供地理位置,行为轨迹,高度等隐私信息。您正在使用的产品/服务及其功能将会收集、储存和使用您的相关信息,包括但不限于您的GPS定位、设备信息、手机通讯录等,您将受到《用户协议》和《隐私政策》的约束。您点击类似“同意并继续”按钮后或进行主动勾选同 义本协议等操作后,即表示您充分理解隐私政策内 容以及上述描述,并已同意授权平台按照隐私政策 内容合法收集、储存和使用您的个人信息。为保护 您的合法权益,请认真阅读并充分理解《隐私政策》内容。";
_neiRongLabel = [UILabel labelWithtext:str font:[UIFont systemFontOfSize:KFont(13)] textColor:[UIColor colorWithHex:0x333333] alignment:NSTextAlignmentLeft]; _neiRongLabel = [UILabel labelWithtext:str font:[UIFont systemFontOfSize:KFont(13)] textColor:[UIColor colorWithHex:0x333333] alignment:NSTextAlignmentLeft];
//设置行间距 //设置行间距
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
_textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 100, 400, 100)]; _textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 100, 400, 100)];
[_bgView addSubview:_textView]; [_bgView addSubview:_textView];
NSString *text1 = @"阅读完整版"; NSString *text1 = @"阅读完整版";
NSString *text2 = @"《知迹隐私协议》"; NSString *text2 = @"《海豚守护隐私协议》";
NSString *text3 = @"《知迹用户协议》"; NSString *text3 = @"《海豚守护用户协议》";
NSString *text4 = @"了解全部内容"; NSString *text4 = @"了解全部内容";
NSMutableAttributedString * attributeStr1 = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@%@和%@%@",text1,text2,text3,text4]]; NSMutableAttributedString * attributeStr1 = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@%@和%@%@",text1,text2,text3,text4]];
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
self.alertView.alertSubtitle.text = @"请查看其它时段或稍等几分钟"; self.alertView.alertSubtitle.text = @"请查看其它时段或稍等几分钟";
} else { } else {
self.alertView.alertTitle.text = @"对方该时间段未收录位置信息"; self.alertView.alertTitle.text = @"对方该时间段未收录位置信息";
self.alertView.alertSubtitle.text = @"请确定对方是否授权知迹位置权限"; self.alertView.alertSubtitle.text = @"请确定对方是否授权海豚守护位置权限";
} }
......
...@@ -105,14 +105,14 @@ ...@@ -105,14 +105,14 @@
if (![ZJUserInfoManager shared].isLogin) { if (![ZJUserInfoManager shared].isLogin) {
_dataSource = @[@"版本检测", _dataSource = @[@"版本检测",
@"隐私政策", @"隐私政策",
@"知迹用户协议", @"海豚守护用户协议",
@"知迹用户付费协议", @"海豚守护用户付费协议",
]; ];
}else{ }else{
_dataSource = @[@"版本检测", _dataSource = @[@"版本检测",
@"隐私政策", @"隐私政策",
@"知迹用户协议", @"海豚守护用户协议",
@"知迹用户付费协议", @"海豚守护用户付费协议",
@"注销账户" @"注销账户"
]; ];
} }
......
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
- (void)showAlertViewAboutNotAuthorAccessContact{ - (void)showAlertViewAboutNotAuthorAccessContact{
[AlertControllerTool alertControllerWithTitle:@"请授权通讯录权限" message:@"请在iPhone的\"设置-隐私-通讯录\"选项中,允许知迹访问你的通讯录" cancelTitle:@"好的" cancelBlock:nil finishBlock:nil]; [AlertControllerTool alertControllerWithTitle:@"请授权通讯录权限" message:@"请在iPhone的\"设置-隐私-通讯录\"选项中,允许海豚守护访问你的通讯录" cancelTitle:@"好的" cancelBlock:nil finishBlock:nil];
} }
- (void)openContact{ - (void)openContact{
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
...@@ -14,31 +14,20 @@ ...@@ -14,31 +14,20 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch1" translatesAutoresizingMaskIntoConstraints="NO" id="0DC-DF-t9u"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_icon" translatesAutoresizingMaskIntoConstraints="NO" id="Z3I-sh-qPI">
<rect key="frame" x="0.0" y="44" width="414" height="303.5"/> <rect key="frame" x="146" y="173.5" width="122" height="146"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch2" translatesAutoresizingMaskIntoConstraints="NO" id="ODD-qe-EdO">
<rect key="frame" x="0.0" y="347.5" width="414" height="514.5"/>
</imageView> </imageView>
</subviews> </subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints> <constraints>
<constraint firstItem="ODD-qe-EdO" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="6oN-nm-Ffe"/> <constraint firstItem="Z3I-sh-qPI" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="RWp-yG-pPE"/>
<constraint firstAttribute="trailing" secondItem="ODD-qe-EdO" secondAttribute="trailing" id="KeZ-Dh-SCb"/> <constraint firstItem="Z3I-sh-qPI" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" multiplier="0.55" id="hsl-Hi-mKr"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="ODD-qe-EdO" secondAttribute="bottom" id="Rvt-Yk-hGZ"/>
<constraint firstItem="0DC-DF-t9u" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="UdZ-we-gM3"/>
<constraint firstItem="ODD-qe-EdO" firstAttribute="top" secondItem="0DC-DF-t9u" secondAttribute="bottom" id="Ys1-C5-RRp"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="0DC-DF-t9u" secondAttribute="trailing" id="bbK-ie-b6j"/>
<constraint firstItem="0DC-DF-t9u" firstAttribute="width" secondItem="0DC-DF-t9u" secondAttribute="height" multiplier="15:11" id="gmu-89-LAK"/>
<constraint firstItem="0DC-DF-t9u" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" id="hL8-DH-5uB"/>
<constraint firstItem="ODD-qe-EdO" firstAttribute="top" secondItem="0DC-DF-t9u" secondAttribute="bottom" id="xvf-lx-ufF"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/> <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="139" y="90"/> <point key="canvasLocation" x="139" y="90"/>
</view> </view>
</objects> </objects>
<resources> <resources>
<image name="launch1" width="360" height="263.5"/> <image name="launch_icon" width="122" height="146"/>
<image name="launch2" width="360" height="376.5"/>
</resources> </resources>
</document> </document>
...@@ -37,6 +37,7 @@ typedef enum : NSUInteger { ...@@ -37,6 +37,7 @@ typedef enum : NSUInteger {
payVoucherList, // 获取代金券列表 payVoucherList, // 获取代金券列表
userFind, // 根据手机号查询用户状态 , 0-未注册 1-已注册 2-是自己 3-已经是好友 userFind, // 根据手机号查询用户状态 , 0-未注册 1-已注册 2-是自己 3-已经是好友
userHasNewMsg, // 查询用户是否有新消息 userHasNewMsg, // 查询用户是否有新消息
userHasNewSystemMsg, // 查询用户是否有新系统消息
userInfo, // 查询用户信息 userInfo, // 查询用户信息
userPayConfig, // 支付配置 userPayConfig, // 支付配置
userPayOrder, // 订单校验 userPayOrder, // 订单校验
......
...@@ -107,7 +107,7 @@ static TQNetworkTools* _tools = nil; ...@@ -107,7 +107,7 @@ static TQNetworkTools* _tools = nil;
urlString = [urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; urlString = [urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSDictionary * params; NSDictionary * params;
if (action == syncLocationDataLast || action == addFriendFollowed || action == friendFollowedUpdate) { if (action == syncLocationDataLast || action == addFriendFollowed || action == friendFollowedUpdate || action == userRemindInfoSet) {
// params = [self setRequestParams: @{} token:YES]; // params = [self setRequestParams: @{} token:YES];
}else if (action == loginWithQuick){ }else if (action == loginWithQuick){
params = [self setRequestParams: parameters token:NO]; params = [self setRequestParams: parameters token:NO];
...@@ -310,6 +310,8 @@ static TQNetworkTools* _tools = nil; ...@@ -310,6 +310,8 @@ static TQNetworkTools* _tools = nil;
return @"/app/v1/location/user/find"; return @"/app/v1/location/user/find";
case userHasNewMsg: case userHasNewMsg:
return @"/app/v1/location/user/has-new-msg"; return @"/app/v1/location/user/has-new-msg";
case userHasNewSystemMsg:
return @"/app/v1/location/user/has-new-record";
case userInfo: case userInfo:
return @"/app/v1/location/user/info"; return @"/app/v1/location/user/info";
case userPayConfig: case userPayConfig:
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define ShanYanAppID @"CiuaRN4D" //创蓝appid #define ShanYanAppID @"CiuaRN4D" //创蓝appid
#define WXAppId @"wx8b8bbccffda2f453" #define WXAppId @"wxe24b15232c28e77c"
#define WXUniversalLink @"https://www.wayaya.info/" #define WXUniversalLink @"https://www.wayaya.info/"
#define aesIvParameter @"e2e7d664d72f710b" // 密钥默认偏移,可更改 #define aesIvParameter @"e2e7d664d72f710b" // 密钥默认偏移,可更改
......
...@@ -281,7 +281,7 @@ static ZJUserInfoManager * manager; ...@@ -281,7 +281,7 @@ static ZJUserInfoManager * manager;
} else if (kCLAuthorizationStatusDenied == status) { } else if (kCLAuthorizationStatusDenied == status) {
NSString *alertTitle = [NSString stringWithFormat:@"位置权限未开启,请进入系统[设置]> [%@] > [位置]中允许访问位置信息,用来绘制您的轨迹", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]]; NSString *alertTitle = [NSString stringWithFormat:@"位置权限未开启,请进入系统[设置]> [%@] > [位置]中允许访问位置信息,用来绘制您的轨迹", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]];
[AlertControllerTool alertControllerWithTitle:alertTitle message: @"知迹绘制您的轨迹需要您开启定位服务" cancelTitle:@"去开启" cancelBlock:^{ [AlertControllerTool alertControllerWithTitle:alertTitle message: @"海豚守护绘制您的轨迹需要您开启定位服务" cancelTitle:@"去开启" cancelBlock:^{
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
...@@ -303,7 +303,7 @@ static ZJUserInfoManager * manager; ...@@ -303,7 +303,7 @@ static ZJUserInfoManager * manager;
} }
} }
}else{ }else{
[AlertControllerTool alertControllerWithTitle:@"定位服务未开启,请进入系统[设置]> [隐私] > [定位服务]中打开开关,并允许使用定位服务" message:@"知迹绘制您的轨迹需要您开启定位服务" cancelTitle:@"去设置" cancelBlock:^{ [AlertControllerTool alertControllerWithTitle:@"定位服务未开启,请进入系统[设置]> [隐私] > [定位服务]中打开开关,并允许使用定位服务" message:@"海豚守护绘制您的轨迹需要您开启定位服务" cancelTitle:@"去设置" cancelBlock:^{
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
......
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key> <key>com.apple.developer.associated-domains</key>
<array> <array>
<string>applinks:www.wayaya.info/</string> <string>applinks:www.wayaya.info/dolphins/</string>
</array> </array>
<key>keychain-access-groups</key> <key>keychain-access-groups</key>
<array/> <array/>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<string>weixin</string> <string>weixin</string>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>wx8b8bbccffda2f453</string> <string>wxe24b15232c28e77c</string>
</array> </array>
</dict> </dict>
<dict> <dict>
...@@ -76,19 +76,19 @@ ...@@ -76,19 +76,19 @@
<true/> <true/>
</dict> </dict>
<key>NSCameraUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>知迹修改您的头像需要您的相机权限</string> <string>海豚守护修改您的头像需要您的相机权限</string>
<key>NSContactsUsageDescription</key> <key>NSContactsUsageDescription</key>
<string>知迹获取您的好友需要您的通讯录权限</string> <string>海豚守护获取您的好友需要您的通讯录权限</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>知迹绘制您的轨迹需要您的定位权限</string> <string>海豚守护绘制您的轨迹需要您的定位权限</string>
<key>NSLocationAlwaysUsageDescription</key> <key>NSLocationAlwaysUsageDescription</key>
<string>知迹绘制您的轨迹需要您的定位权限</string> <string>海豚守护绘制您的轨迹需要您的定位权限</string>
<key>NSLocationUsageDescription</key> <key>NSLocationUsageDescription</key>
<string>知迹绘制您的轨迹需要您的定位权限</string> <string>海豚守护绘制您的轨迹需要您的定位权限</string>
<key>NSLocationWhenInUseUsageDescription</key> <key>NSLocationWhenInUseUsageDescription</key>
<string>知迹绘制您的轨迹需要您的定位权限</string> <string>海豚守护绘制您的轨迹需要您的定位权限</string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>
<string>知迹修改您的头像需要您的相册权限</string> <string>海豚守护修改您的头像需要您的相册权限</string>
<key>UIApplicationSceneManifest</key> <key>UIApplicationSceneManifest</key>
<dict> <dict>
<key>UIApplicationSupportsMultipleScenes</key> <key>UIApplicationSupportsMultipleScenes</key>
......
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