话不多说,请看代码:
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;
}
原文链接:https://www.f2er.com/php/17933.html