Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZxAd_Unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
ZxAd_Unity
Commits
643c3b87
Commit
643c3b87
authored
Jun 25, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改穿山甲开屏加载超时问题
parent
360e4375
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
18 deletions
+33
-18
AdManager.cs
Assets/AdSDK/AD/AD_Manager/AdManager.cs
+2
-0
CSJSplshADUtils.cs
Assets/AdSDK/AD/CSJ/CSJSplshADUtils.cs
+8
-0
Example.cs
Assets/AdSDK/AD/CSJ/Example/Example.cs
+10
-1
AdNative.cs
...K/AD/CSJ/PangleAdapterScripts/Scripts/Android/AdNative.cs
+5
-1
ISplashAdListener.cs
.../AD/CSJ/PangleAdapterScripts/Scripts/ISplashAdListener.cs
+1
-1
UnionPlatform.meta
Assets/AdSDK/AD/CSJ/UnionPlatform.meta
+0
-8
AdDemo.cs
Assets/AdSDK/AD/Demo/AdDemo.cs
+1
-1
EventUtils.cs
Assets/Umeng/EventReportHttp/EventUtils.cs
+2
-2
ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+4
-4
No files found.
Assets/AdSDK/AD/AD_Manager/AdManager.cs
View file @
643c3b87
...
...
@@ -242,8 +242,10 @@ public class AdManager
if
(
adList
==
null
||
adList
.
Count
==
0
)
{
Debug
.
unityLogger
.
Log
(
ZXADConfig
.
ADManagerTAG
,
"Splash没有广告数据"
);
listener
.
onLastError
();
return
;
}
List
<
AdEntity
>
totalEntityList
=
adList
;
AdEntity
entity
=
totalEntityList
[
0
];
entity
.
actionName
=
"开屏"
;
...
...
Assets/AdSDK/AD/CSJ/CSJSplshADUtils.cs
View file @
643c3b87
...
...
@@ -174,6 +174,14 @@ public class CSJSplshADUtils
#endif
}
public
void
onTimeout
()
{
EventUtils
.
onEventPullFail
(
entity
,
"-1"
,
"网络超时"
);
listener
.
onError
(
"CSJ SplshAd code -1 message 网络超时"
);
Debug
.
Log
(
"splash load Onerror: -1 : 网络超时"
);
callback
(
false
);
}
private
sealed
class
SplashAdInteractionListener
:
ISplashAdInteractionListener
{
...
...
Assets/AdSDK/AD/CSJ/Example/Example.cs
View file @
643c3b87
...
...
@@ -1640,6 +1640,10 @@ public sealed class Example : MonoBehaviour
#endif
}
public
void
onTimeout
()
{
}
private
sealed
class
SplashAdInteractionListener
:
ISplashAdInteractionListener
{
...
...
@@ -1750,7 +1754,12 @@ private sealed class ExpressSplashAdListener : ISplashAdListener
}
#endif
}
}
public
void
onTimeout
()
{
}
}
private
sealed
class
ExpressSplashAdInteractionListener
:
ISplashAdInteractionListener
{
...
...
Assets/AdSDK/AD/CSJ/PangleAdapterScripts/Scripts/Android/AdNative.cs
View file @
643c3b87
...
...
@@ -330,7 +330,11 @@ namespace ByteDance.Union
UnityDispatcher
.
PostTask
(
()
=>
this
.
listener
.
OnError
(
code
,
message
));
}
public
void
onTimeout
()
{
UnityDispatcher
.
PostTask
(
()
=>
this
.
listener
.
onTimeout
());
}
public
void
onSplashAdLoad
(
AndroidJavaObject
handle
)
{
var
ad
=
new
BUSplashAd
(
handle
);
...
...
Assets/AdSDK/AD/CSJ/PangleAdapterScripts/Scripts/ISplashAdListener.cs
View file @
643c3b87
...
...
@@ -16,7 +16,7 @@ namespace ByteDance.Union
/// Invoke when load Ad error.
/// </summary>
void
OnError
(
int
code
,
string
message
);
void
onTimeout
();
/// <summary>
/// Invoke when the Ad load success.
/// </summary>
...
...
Assets/AdSDK/AD/CSJ/UnionPlatform.meta
deleted
100644 → 0
View file @
360e4375
fileFormatVersion: 2
guid: 6915fe3cccc9344909d4516bf2cd6714
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/AD/Demo/AdDemo.cs
View file @
643c3b87
...
...
@@ -132,7 +132,7 @@ public class AdDemo : MonoBehaviour
public
void
onLastError
()
{
Debug
.
unityLogger
.
Log
(
"开屏
2
Error"
);
Debug
.
unityLogger
.
Log
(
"开屏
onLast
Error"
);
}
}
...
...
Assets/Umeng/EventReportHttp/EventUtils.cs
View file @
643c3b87
...
...
@@ -60,8 +60,8 @@ public class EventUtils
map
[
"code_id"
]
=
entity
.
codeId
;
map
[
"reqId"
]
=
entity
.
reqId
;
map
[
"slot"
]
=
entity
.
actionName
;
map
[
"errorMsg"
]
=
code
;
map
[
"errorCode"
]
=
msg
;
map
[
"errorMsg"
]
=
msg
;
map
[
"errorCode"
]
=
code
;
EventHttp
.
Instance
.
_PostEvent
(
JsonMapper
.
ToJson
(
map
));
if
(
entity
.
pullfail_tracking
!=
null
&&
entity
.
pullfail_tracking
.
Count
>
0
)
...
...
ProjectSettings/ProjectSettings.asset
View file @
643c3b87
...
...
@@ -131,7 +131,7 @@ PlayerSettings:
16:10
:
1
16:9
:
1
Others
:
1
bundleVersion
:
1.0.
0
bundleVersion
:
1.0.
5
preloadedAssets
:
[]
metroInputSource
:
0
wsaTransparentSwapchain
:
0
...
...
@@ -175,7 +175,7 @@ PlayerSettings:
androidSupportedAspectRatio
:
1
androidMaxAspectRatio
:
2.1
applicationIdentifier
:
Android
:
com.ym.c
hxxx
Android
:
com.ym.c
scmnq
Lumin
:
com.DefaultCompany.com.unity.template.mobile2D
Standalone
:
com.DefaultCompany.com.unity.template.mobile2D
iPhone
:
com.ym.iosawpdd
...
...
@@ -184,7 +184,7 @@ PlayerSettings:
Standalone
:
0
iPhone
:
0
tvOS
:
0
AndroidBundleVersionCode
:
1
AndroidBundleVersionCode
:
6
AndroidMinSdkVersion
:
21
AndroidTargetSdkVersion
:
0
AndroidPreferredInstallLocation
:
1
...
...
@@ -655,7 +655,7 @@ PlayerSettings:
scriptingDefineSymbols
:
{}
platformArchitecture
:
{}
scriptingBackend
:
Android
:
1
Android
:
0
il2cppCompilerConfiguration
:
{}
managedStrippingLevel
:
{}
incrementalIl2cppBuild
:
{}
...
...
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