Commit 6dd830b8 authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 4b678bff
......@@ -39,7 +39,7 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "NO">
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
......@@ -51,7 +51,7 @@
</BuildableReference>
</BuildableProductRunnable>
<LocationScenarioReference
identifier = "com.apple.dt.IDEFoundation.CurrentLocationScenarioIdentifier"
identifier = "London, England"
referenceType = "1">
</LocationScenarioReference>
</LaunchAction>
......
......@@ -301,7 +301,7 @@
NSString * phone = phoneTextfield.text;
NSString * phoneCode = currentCountryCode;
// phone = [NSString stringWithFormat:@"%@%@", phoneCode, phone];
phone = [NSString stringWithFormat:@"%@%@", phoneCode, phone];
[[TQNetworkTools shared] postWithAction:loginWithPhone parameters:@{@"phoneNo":phone, @"code":codeTextfield.text} success:^(id _Nonnull response) {
......@@ -351,12 +351,12 @@
NSString * phone = phoneTextfield.text;
NSString * phoneCode = currentCountryCode;
[[TQNetworkTools shared] postWithAction:getSmsCode parameters:@{@"phoneNo":phone, /*@"phoneCode":phoneCode*/} success:^(id _Nonnull response) {
[[TQNetworkTools shared] postWithAction:getSmsCode parameters:@{@"phoneNo":phone, @"phoneCode":phoneCode} success:^(id _Nonnull response) {
// self->isSend = YES;
NSLog(@"getSmsCode response %@", response);
if([[response objectForKey:@"status"] integerValue] == 200){
[self countDown:sender];
}else if ([[response objectForKey:@"status"] integerValue] == 105) {
}else {
[MBProgressHUD showError:[response objectForKey:@"msg"] toView:self.view];
}
} failure:^(NSError * _Nonnull error) {
......
......@@ -337,24 +337,24 @@
dispatch_source_set_timer(timer, DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC, 0 * NSEC_PER_SEC);
dispatch_source_set_event_handler(timer, ^{
if (self.count < self.initiallinepath.count) {
CLLocationCoordinate2D coordinate = [self.initiallinepath coordinateAtIndex:self.count];
[self.actionlinepath addCoordinate:coordinate];
self.actionPolyline = [GMSPolyline polylineWithPath:self.actionlinepath];
self.actionPolyline.strokeColor = [UIColor greenColor];
self.actionPolyline.strokeWidth = 2;
[CATransaction begin];
[CATransaction setAnimationDuration:0.3];
self.actionMarker.position = coordinate;
// self.actionMarker.rotation = location.course
self.actionPolyline.map = self.mapView;
[CATransaction commit];
self.count++;
}else{
dispatch_source_cancel(timer);
}
// if (self.count < self.initiallinepath.count) {
//
// CLLocationCoordinate2D coordinate = [self.initiallinepath coordinateAtIndex:self.count];
// [self.actionlinepath addCoordinate:coordinate];
//
// self.actionPolyline = [GMSPolyline polylineWithPath:self.actionlinepath];
// self.actionPolyline.strokeColor = [UIColor greenColor];
// self.actionPolyline.strokeWidth = 2;
// [CATransaction begin];
// [CATransaction setAnimationDuration:0.3];
// self.actionMarker.position = coordinate;
//// self.actionMarker.rotation = location.course
// self.actionPolyline.map = self.mapView;
// [CATransaction commit];
// self.count++;
// }else{
// dispatch_source_cancel(timer);
// }
});
dispatch_resume(timer);
......
......@@ -213,8 +213,8 @@ static TQNetworkTools* _tools = nil;
// [dict setValue: @"1" forKey: @"tgtk"];
// 获取BundleID
// [dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
[dict setValue: @"com.app.zhiji" forKey: @"pkg"]; //cs
[dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
// [dict setValue: @"com.app.zhiji" forKey: @"pkg"]; //cs
NSString *identifierForVendor = [[data Read] objectForKey:@"Identifier"];;
[dict setValue: identifierForVendor forKey: @"device"];
......@@ -230,8 +230,8 @@ static TQNetworkTools* _tools = nil;
// }
//appLs
// [dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
[dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"]; //cs
[dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
// [dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"]; //cs
// 设置网络类型
[[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
......@@ -556,8 +556,8 @@ static TQNetworkTools* _tools = nil;
[dict setValue: identifierForVendor forKey: @"device"];
NSLog(@"identifierForVendor info == %@", identifierForVendor);
// 获取BundleID
// [dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
[dict setValue: @"com.app.zhiji" forKey: @"pkg"];
[dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
// [dict setValue: @"com.app.zhiji" forKey: @"pkg"];
// 设置时间戳
NSTimeInterval today = [[NSDate date] timeIntervalSince1970] * 1000;
......@@ -569,8 +569,8 @@ static TQNetworkTools* _tools = nil;
// }
//appLs
// [dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
[dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"];
[dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
// [dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"];
[dict addEntriesFromDictionary:[self signParams:dict]];
......
......@@ -26,15 +26,15 @@
//#define ServerHost @"https://feedapitest.zhangxinhulian.com"
//#define ServerHostFeed @"https://feedapitest.zhangxinhulian.com"
#define ServerReport @"http://report.zhangxinhulian.com"
#define ServerHost @"https://feedapi.zhangxinhulian.com"
#define ServerHostFeed @"https://feedapi.zhangxinhulian.com"
//#define ServerReport @"http://report.zhangxinhulian.com"
//#define ServerHost @"https://feedapi.zhangxinhulian.com"
//#define ServerHostFeed @"https://feedapi.zhangxinhulian.com"
//
//#else
//#define ServerReport @"http://report.linking100.com"
//#define ServerHost @"https://feedapi.linking100.com"
//#define ServerHostFeed @"https://feedapi.linking100.com"
#define ServerReport @"http://report.linking100.com"
#define ServerHost @"https://feedapi.linking100.com"
#define ServerHostFeed @"https://feedapi.linking100.com"
//#endif
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