Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
ZAnti-Addiction
/
ZAnti-Addiction-Unity
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ff39e240
由
王帅
编写于
2023-03-02 17:46:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
readme
1 个父辈
788b6a52
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
24 行删除
Anti-Addiction-Unity.md
README.md
Anti-Addiction-Unity.md
查看文件 @
ff39e24
...
@@ -124,21 +124,21 @@ public class AASDKDemoScript: MonoBehaviour
...
@@ -124,21 +124,21 @@ public class AASDKDemoScript: MonoBehaviour
}
}
```
```
# Optional Method
# Optional Method
1.
Get the status of user authencation
####
1. Get the status of user authencation
0=>No verified
0=>No verified
1=>Has been verified
1=>Has been verified
2=>Being verified
2=>Being verified
3=>Verified failure
3=>Verified failure
`antiAddictionSDK.IsAuthenticated()`
`antiAddictionSDK.IsAuthenticated()`
2.
Check user is adult:
####
2. Check user is adult:
1: adult
1: adult
2: nonage
2: nonage
`antiAddictionSDK.AgeGroupOfCurrentUser()`
`antiAddictionSDK.AgeGroupOfCurrentUser()`
3.
remaining time for minors (s):
####
3. remaining time for minors (s):
`antiAddictionSDK.LeftTimeOfCurrentUser()`
`antiAddictionSDK.LeftTimeOfCurrentUser()`
# In-App Purchase check
# In-App Purchase check
Because the amount of money minors can spend on the game is limited, they need to check before making in-app purchases.
Because the amount of money minors can spend on the game is limited, they need to check before making in-app purchases.
...
...
README.md
查看文件 @
ff39e24
...
@@ -120,21 +120,21 @@ public class AASDKDemoScript: MonoBehaviour
...
@@ -120,21 +120,21 @@ public class AASDKDemoScript: MonoBehaviour
}
}
```
```
# 其他方法
# 其他方法
1.
当前用户实名认证状态:
####
1. 当前用户实名认证状态:
0=>未验证
0=>未验证
1=>验证通过
1=>验证通过
2=>正在验证
2=>正在验证
3=>认证失败
3=>认证失败
`antiAddictionSDK.IsAuthenticated()`
`antiAddictionSDK.IsAuthenticated()`
2.
当前用户认证结果:
####
2. 当前用户认证结果:
1=>成年
1=>成年
2=>未成年
2=>未成年
`antiAddictionSDK.AgeGroupOfCurrentUser()`
`antiAddictionSDK.AgeGroupOfCurrentUser()`
3.
剩余可玩时长(秒):
####
3. 剩余可玩时长(秒):
`antiAddictionSDK.LeftTimeOfCurrentUser()`
`antiAddictionSDK.LeftTimeOfCurrentUser()`
# 游戏内支付校验
# 游戏内支付校验
因为未成年人的游戏付费额度受限,所以在进行内购支付前需要检测
因为未成年人的游戏付费额度受限,所以在进行内购支付前需要检测
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论