com.taptap.sdk.compliance 4.3.0 → 4.3.2

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.
@@ -5,7 +5,7 @@
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.0"/>
8
+ <androidPackage spec="com.taptap.sdk:tap-compliance:4.3.2"/>
9
9
  </androidPackages>
10
10
 
11
11
  <!-- iOS Cocoapod dependencies can be specified by each iosPod element. -->
@@ -13,6 +13,6 @@
13
13
  <sources>
14
14
  <source>https://github.com/CocoaPods/Specs.git</source>
15
15
  </sources>
16
- <iosPod name="TapTapComplianceSDK" version="~> 4.3.0" bitcodeEnabled="false" addToAllTargets="false"/>
16
+ <iosPod name="TapTapComplianceSDK" version="~> 4.3.2" bitcodeEnabled="false" addToAllTargets="false"/>
17
17
  </iosPods>
18
18
  </dependencies>
@@ -63,7 +63,7 @@ namespace TapSDK.Compliance
63
63
 
64
64
  }
65
65
 
66
- public static Task<string> GetCurrentToken()
66
+ public static Task<string> GetCurrentAccessToken()
67
67
  {
68
68
 
69
69
  IComplianceJob Job = ComplianceJobManager.Job;
@@ -81,7 +81,7 @@ namespace TapSDK.Compliance
81
81
  /// <param name="amount">支付金额,单位:分</param>
82
82
  /// <param name="handleCheckPayLimit">检查支付结果的回调</param>
83
83
  /// <param name="handleCheckPayLimitException">检查支付碰到问题时的回调</param>
84
- public static void CheckPayLimit(long amount
84
+ public static void CheckPaymentLimit(long amount
85
85
  , Action<CheckPayResult> handleCheckPayLimit
86
86
  , Action<string> handleCheckPayLimitException)
87
87
  {
@@ -94,7 +94,7 @@ namespace TapSDK.Compliance
94
94
  /// <param name="amount">支付金额,单位:分</param>
95
95
  /// <param name="handleSubmitPayResult">提交成功后的回调</param>
96
96
  /// <param name="handleSubmitPayResultException">提交失败后的回调</param>
97
- public static void SubmitPayResult(long amount
97
+ public static void SubmitPayment(long amount
98
98
  , Action handleSubmitPayResult
99
99
  , Action<string> handleSubmitPayResultException
100
100
  )
@@ -283,7 +283,7 @@ namespace TapSDK.Compliance
283
283
  private async Task<int> GetVerificationResult(string userId) {
284
284
  var tcs = new TaskCompletionSource<int>();
285
285
  int mannualVerify = 0;
286
- TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentAccount();
286
+ TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentTapAccount();
287
287
  AccessToken accessToken = tapAccount?.accessToken;
288
288
  bool isTapUser = accessToken != null;
289
289
  TapLogger.Debug(" Verification current = " + Verification.Current );
@@ -68,7 +68,7 @@ namespace TapSDK.Compliance.Internal
68
68
  try{
69
69
  await FetchByOldToken(userId);
70
70
  }catch(Exception e){
71
- TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentAccount();
71
+ TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentTapAccount();
72
72
  AccessToken accessToken = tapAccount?.accessToken;
73
73
  if(HasComplianceAuthInTapToken(accessToken)){
74
74
  await FetchByTapToken(userId);
@@ -126,7 +126,7 @@ namespace TapSDK.Compliance.Internal
126
126
  while(true){
127
127
  if(accessToken == null){
128
128
  ///判断本地是否有包含 compliance 的 token
129
- TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentAccount();
129
+ TapTapAccount tapAccount = await TapTapLogin.Instance.GetCurrentTapAccount();
130
130
  accessToken = tapAccount?.accessToken;
131
131
  }
132
132
  try{
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.0",
5
+ "version": "4.3.2",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.3.0",
10
- "com.taptap.sdk.login": "4.3.0"
9
+ "com.taptap.sdk.core": "4.3.2",
10
+ "com.taptap.sdk.login": "4.3.2"
11
11
  }
12
12
  }