|
@@ -1,6 +1,7 @@
|
|
|
package rpc
|
|
|
|
|
|
import (
|
|
|
+ "bp.jydev.jianyu360.cn/BaseService/gateway/common"
|
|
|
. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
|
|
@@ -30,8 +31,10 @@ func CheckAccountStatus(entId int64, userId string, authCheck, statusCheck int)
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
- authUser, authEnt := getPCheck(authCheck)
|
|
|
- statusUser, statusEnt := getPCheck(statusCheck)
|
|
|
+ authCheckArr := common.SplitPower(authCheck, 2)
|
|
|
+ statusCheckArr := common.SplitPower(statusCheck, 2)
|
|
|
+ authUser, authEnt := authCheckArr[0], authCheckArr[1]
|
|
|
+ statusUser, statusEnt := statusCheckArr[0], statusCheckArr[1]
|
|
|
|
|
|
//查询个人状态
|
|
|
if authUser || statusUser {
|
|
@@ -82,9 +85,3 @@ func checkEntStatus(entId int64, authCheck, statusCheck bool) error {
|
|
|
func checkPersonalStatus(userId string, authCheck, statusCheck bool) error {
|
|
|
return NewErrorWithCode(GLOBAL_ERR_UNFINISH, "checkPersonalStatus")
|
|
|
}
|
|
|
-
|
|
|
-func getPCheck(c int) (check1 bool, check2 bool) {
|
|
|
- check1 = c/10%10 == 1
|
|
|
- check2 = c/1%10 == 1
|
|
|
- return
|
|
|
-}
|