作者QQ:408985552 阅读:1165
回复:0
会员添加地址中手机或固定电话处判断固定电话有错.
原来只判断手机号码
if(!check_mobile($post['mobile'])) return array('status'=>-1,'msg'=>'手机号码格式有误','result'=>''); 改为: if(!check_mobile($post['mobile']) && !check_telephone($post['mobile'])) return array('status'=>-1,'msg'=>'手机号码格式有误或固定电话有误','result'=>''); |
|
|
您需要登录后才可以回帖,登录
|