• 手机验证码根据用户名和手机号查询是否存在*


        public function CheckMobileUser($data){
            $sql='select phone,username from wlzbpre_user where phone="'.$data['phone'].'" or username="'.$data['phone'].'" and status="1" limit 1';
            $phone=M()->query($sql);
            $phone =$phone[0]['phone'];
            $username=$phone[0]['username'];
            if(empty($phone)){
                $remark=array(
                    'RespCode'=>'081',
                    'RespDesc'=>'手机号/用户名不存在',
                    'AcctDetails'=>array('token'=>''),
                );
            }else{
                $remark=array(
                    'RespCode'=>'000',
                    'RespDesc'=>'手机号已存在',
                    'AcctDetails'=>array('phone'=>$phone,'username'=>$username),
                );
            }
            return $remark;
        }
  • 相关阅读:
    洛谷P2050 美食节
    洛谷P2150 寿司晚宴
    区间最深LCA
    三层交换机
    VLAN 及 GVRP 配置
    GVRP
    VLAN IEEE802.1Q
    以太网端口技术
    网关与路由器
    Quidway S系列交换机
  • 原文地址:https://www.cnblogs.com/yangzailu/p/6404654.html
Copyright © 2020-2023  润新知