hdong: split some phone number from client and admin. #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @Oceania2018 , 帮忙合并一下,这个改动是为了将Qtoss这边手机注册的用户和分销超管端手机注册的用户分开。
目前的逻辑:
Qtoss 的注册用户是 Role 等于”client"(没有Type),或者“user”(Type="client"),两种情况。
分销超管端注册用户是 Role 等于“admin” 或者 “root”两种情况。
现在接口通过手机号码查询账号的API,默认使用 role="client", 会用Qtoss原有的逻辑 .
超管端的检查都加了 role:"admin"。
我本地测试了,两边都不影响了。
任何其它的问题,或者没有考虑到的逻辑,帮忙纠正一下,谢谢!