com.taptap.sdk.compliance 4.3.8-alpha.2 → 4.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Mobile/Editor/NativeDependencies.xml +3 -3
- package/Runtime/Internal/Init/ComplianceInitTask.cs +2 -2
- package/Runtime/Public/TapTapCompliance.cs +1 -1
- package/Runtime/Public/TapTapComplianceOption.cs +1 -1
- package/Standalone/Runtime/ComplianceWorker.cs +1 -0
- package/Standalone/Runtime/Internal/ComplianceNewJob.cs +4 -2
- package/Standalone/Runtime/Internal/Tracker/TapComplianceTracker.cs +8 -2
- package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceIDInputController.cs +2 -0
- package/package.json +3 -3
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<repositories>
|
|
6
6
|
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
7
7
|
</repositories>
|
|
8
|
-
<androidPackage spec="com.taptap.sdk:tap-compliance:4.3.
|
|
8
|
+
<androidPackage spec="com.taptap.sdk:tap-compliance:4.3.10"/>
|
|
9
9
|
</androidPackages>
|
|
10
10
|
|
|
11
11
|
<!-- iOS Cocoapod dependencies can be specified by each iosPod element. -->
|
|
12
12
|
<iosPods>
|
|
13
13
|
<sources>
|
|
14
|
-
<source>
|
|
14
|
+
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
15
15
|
</sources>
|
|
16
|
-
<iosPod name="TapTapComplianceSDK" version="~> 4.3.
|
|
16
|
+
<iosPod name="TapTapComplianceSDK" version="~> 4.3.10" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
17
17
|
</iosPods>
|
|
18
18
|
</dependencies>
|
|
@@ -8,7 +8,7 @@ namespace TapSDK.Compliance.Internal.Init
|
|
|
8
8
|
{
|
|
9
9
|
public int Order => 12;
|
|
10
10
|
|
|
11
|
-
public void Init(
|
|
11
|
+
public void Init(TapTapSdkOptions coreOption, TapTapSdkBaseOptions[] otherOptions)
|
|
12
12
|
{
|
|
13
13
|
if (coreOption == null || coreOption.region == TapTapRegionType.Overseas)
|
|
14
14
|
{
|
|
@@ -32,7 +32,7 @@ namespace TapSDK.Compliance.Internal.Init
|
|
|
32
32
|
ComplianceJobManager.Init(coreOption.clientId, coreOption.clientToken, complianceOption);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
public void Init(
|
|
35
|
+
public void Init(TapTapSdkOptions coreOption)
|
|
36
36
|
{
|
|
37
37
|
if (coreOption == null || coreOption.region == TapTapRegionType.Overseas)
|
|
38
38
|
{
|
|
@@ -10,7 +10,7 @@ namespace TapSDK.Compliance
|
|
|
10
10
|
public static class TapTapCompliance
|
|
11
11
|
{
|
|
12
12
|
|
|
13
|
-
public static readonly string Version = "4.3.
|
|
13
|
+
public static readonly string Version = "4.3.10";
|
|
14
14
|
|
|
15
15
|
public static void RegisterComplianceCallback(Action<int, string> callback)
|
|
16
16
|
{
|
|
@@ -82,7 +82,6 @@ namespace TapSDK.Compliance
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
85
|
public async void Startup(string userId)
|
|
87
86
|
{
|
|
88
87
|
string sessionId = Guid.NewGuid().ToString();
|
|
@@ -91,7 +90,7 @@ namespace TapSDK.Compliance
|
|
|
91
90
|
TapTapComplianceManager.ClearUserCache();
|
|
92
91
|
}
|
|
93
92
|
var code = await TapTapComplianceManager.StartUp(userId);
|
|
94
|
-
switch(code){
|
|
93
|
+
switch(code){
|
|
95
94
|
case StartUpResult.LOGIN_SUCCESS:
|
|
96
95
|
case StartUpResult.PERIOD_RESTRICT:
|
|
97
96
|
case StartUpResult.DURATION_LIMIT:
|
|
@@ -104,6 +103,9 @@ namespace TapSDK.Compliance
|
|
|
104
103
|
case StartUpResult.EXITED:
|
|
105
104
|
case StartUpResult.SWITCH_ACCOUNT:
|
|
106
105
|
break;
|
|
106
|
+
case StartUpResult.REAL_NAME_STOP:
|
|
107
|
+
TapComplianceTracker.Instance.TrackCancel("startup", sessionId);
|
|
108
|
+
break;
|
|
107
109
|
}
|
|
108
110
|
if (StartUpResult.Contains(code)){
|
|
109
111
|
}
|
|
@@ -18,6 +18,8 @@ namespace TapSDK.Compliance.Standalone.Internal
|
|
|
18
18
|
|
|
19
19
|
private TapOpenlogStandalone openlog;
|
|
20
20
|
|
|
21
|
+
internal string currentVerifyType;
|
|
22
|
+
|
|
21
23
|
private TapComplianceTracker()
|
|
22
24
|
{
|
|
23
25
|
openlog = new TapOpenlogStandalone("TapCompliance", TapTapCompliance.Version);
|
|
@@ -42,6 +44,7 @@ namespace TapSDK.Compliance.Standalone.Internal
|
|
|
42
44
|
|
|
43
45
|
internal void TrackStart(string funcNace, string seesionId)
|
|
44
46
|
{
|
|
47
|
+
currentVerifyType = "fast_verify";
|
|
45
48
|
Dictionary<string, string> parameters = new Dictionary<string, string>
|
|
46
49
|
{
|
|
47
50
|
{ "func_name", funcNace },
|
|
@@ -58,7 +61,8 @@ namespace TapSDK.Compliance.Standalone.Internal
|
|
|
58
61
|
Dictionary<string, string> parameters = new Dictionary<string, string>
|
|
59
62
|
{
|
|
60
63
|
{ "func_name", funcNace },
|
|
61
|
-
{ "seesion_id", seesionId }
|
|
64
|
+
{ "seesion_id", seesionId },
|
|
65
|
+
{ "identity_verify_type", currentVerifyType }
|
|
62
66
|
};
|
|
63
67
|
ReportLog(ACTION_SUCCESS, new Dictionary<string, string>()
|
|
64
68
|
{
|
|
@@ -72,6 +76,7 @@ namespace TapSDK.Compliance.Standalone.Internal
|
|
|
72
76
|
{
|
|
73
77
|
{ "func_name", funcNace },
|
|
74
78
|
{ "seesion_id", seesionId },
|
|
79
|
+
{ "identity_verify_type", currentVerifyType }
|
|
75
80
|
};
|
|
76
81
|
ReportLog(ACTION_CANCEL, new Dictionary<string, string>()
|
|
77
82
|
{
|
|
@@ -86,7 +91,8 @@ namespace TapSDK.Compliance.Standalone.Internal
|
|
|
86
91
|
{ "func_name", funcNace },
|
|
87
92
|
{ "seesion_id", seesionId },
|
|
88
93
|
{ "error_code", errorCode.ToString() },
|
|
89
|
-
{ "error_msg", errorMessage }
|
|
94
|
+
{ "error_msg", errorMessage },
|
|
95
|
+
{ "identity_verify_type", currentVerifyType }
|
|
90
96
|
};
|
|
91
97
|
ReportLog(ACTION_FAIL, new Dictionary<string, string>()
|
|
92
98
|
{
|
|
@@ -5,6 +5,7 @@ using UnityEngine;
|
|
|
5
5
|
using UnityEngine.UI;
|
|
6
6
|
using TapSDK.UI;
|
|
7
7
|
using TapSDK.Compliance.Model;
|
|
8
|
+
using TapSDK.Compliance.Standalone.Internal;
|
|
8
9
|
|
|
9
10
|
namespace TapSDK.Compliance.Internal {
|
|
10
11
|
public class TaptapComplianceIDInputController : BasePanelController
|
|
@@ -50,6 +51,7 @@ namespace TapSDK.Compliance.Internal {
|
|
|
50
51
|
/// </summary>
|
|
51
52
|
protected override void BindComponents()
|
|
52
53
|
{
|
|
54
|
+
TapComplianceTracker.Instance.currentVerifyType = "manual_verify";
|
|
53
55
|
closeButton = transform.Find("Root/CloseButton").GetComponent<Button>();
|
|
54
56
|
submitButton = transform.Find("Root/SubmitButton").GetComponent<Button>();
|
|
55
57
|
scrollRect = transform.Find("Root/Scroll View").GetComponent<ScrollRect>();
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.compliance",
|
|
3
3
|
"displayName": "TapTapSDK Compliance",
|
|
4
4
|
"description": "TapTapSDK Compliance",
|
|
5
|
-
"version": "4.3.
|
|
5
|
+
"version": "4.3.10",
|
|
6
6
|
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.3.
|
|
10
|
-
"com.taptap.sdk.login": "4.3.
|
|
9
|
+
"com.taptap.sdk.core": "4.3.10",
|
|
10
|
+
"com.taptap.sdk.login": "4.3.10"
|
|
11
11
|
}
|
|
12
12
|
}
|