| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace app\api\logic;
- use Exception;
- use think\Env;
- use think\Cache;
- use think\Loader ;
- use fast\Asset;
- use app\common\model\UserModel;
- //用户逻辑
- class UserInfoLogic
- {
- //判断用户手机号存在或者重复
- public static function checkUserByInfo(string $wher, int $user_id)
- {
- //用户信息存在
- $user = (new UserModel)->getById($user_id);
- if(!empty($user[$wher])) return false;
-
- $userInfo = UserModel::getByUserCount($where);
- if($userInfo > 1) return false;
-
- return true;
- }
-
-
- }
|