打开u/require/profile/toolcenter.php文件,找到:
- $toolid = (int)S::getGP('toolid');
下方添加如下代码:
- $uid = (int)S::getGP('uid');
-
- if($toolid == '18' && !empty($uid)){
- $userService = L::loadClass('UserService','user');
- $isAuthMobile = $userService->getUserStatus($uid, PW_USERSTATUS_AUTHMOBILE);
- $isAuthAlipay = $userService->getUserStatus($uid, PW_USERSTATUS_AUTHALIPAY);
- $isAuthCertificate = $userService->getUserStatus($uid, PW_USERSTATUS_AUTHCERTIFICATE);
- $isAuth = $isAuthMobile || $isAuthAlipay || $isAuthCertificate;
-
- if(!empty($isAuth)){
- Showmsg('该用户是实名认证用户,您不能对其使用猪头术!');
- }
- }
效果图: