Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VirtualCard-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
APP
VirtualCard-iOS
Commits
024ca012
Commit
024ca012
authored
Jul 15, 2019
by
邢超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.quantgroup.cn:APP/VirtualCard-iOS
parents
116e27f8
6541ba76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
AppDelegate.m
VirtualPayment/VirtualPayment/Application/AppDelegate.m
+1
-1
QGAnalyticsService.m
...yment/QGUtils/QGTool/QGAnalyticsTool/QGAnalyticsService.m
+9
-6
No files found.
VirtualPayment/VirtualPayment/Application/AppDelegate.m
View file @
024ca012
...
...
@@ -41,7 +41,7 @@
[
self
.
window
makeKeyAndVisible
];
self
.
window
.
rootViewController
=
[
QGRootTabbarController
new
];
//注册神策统计
//
[QGAnalyticsService loadAnalyticsConfig:launchOptions];
[
QGAnalyticsService
loadAnalyticsConfig
:
launchOptions
];
//注册Push
[
QGPushService
loadQGPushConfig
:
launchOptions
];
//自定义webviewUserAgent
...
...
VirtualPayment/VirtualPayment/QGUtils/QGTool/QGAnalyticsTool/QGAnalyticsService.m
View file @
024ca012
...
...
@@ -39,16 +39,19 @@
[[
SensorsAnalyticsSDK
sharedInstance
]
enableLog
:
YES
];
//打印log
#else
//线上主包使用神策正式环境
NSString
*
identifier
=
XcodeAppBundleIdentifier
;
if
([
identifier
isEqualToString
:
@"com.quantgroup.www"
])
{
[
SensorsAnalyticsSDK
sharedInstanceWithServerURL
:
SA_SERVER_URL
andDebugMode
:
SensorsAnalyticsDebugOff
];
[[
SensorsAnalyticsSDK
sharedInstance
]
enableLog
:
NO
];
//打印log
}
else
if
([
identifier
isEqualToString
:
@"com.quantgroup.test"
])
{
//使用测试地址
if
([
identifier
isEqualToString
:
@"com.quantgroup.test"
])
{
[
SensorsAnalyticsSDK
sharedInstanceWithServerURL
:
SA_DEBUG_SERVER_URL
andDebugMode
:
SensorsAnalyticsDebugAndTrack
];
[[
SensorsAnalyticsSDK
sharedInstance
]
enableLog
:
YES
];
//打印log
}
//线上主包使用神策正式环境
//其他都是用线上环境
else
{
[
SensorsAnalyticsSDK
sharedInstanceWithServerURL
:
SA_SERVER_URL
andDebugMode
:
SensorsAnalyticsDebugOff
];
[[
SensorsAnalyticsSDK
sharedInstance
]
enableLog
:
NO
];
//打印log
}
#endif
[[
SensorsAnalyticsSDK
sharedInstance
]
registerSuperProperties
:@{
@"appName"
:
appChannel
}];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment