$map['username'] = $username;
$map['status'] = 1;
// 认证方法
static public function authenticate($map,$model='') {
echo “123”
if(empty($model)) $model = C('USER_AUTH_MODEL');
echo $model
//使用给定的Map进行认证
return M($model)->where($map)->find();
echo ”456“
}
结果输出123User,456没输出来。说明红色语句有问题
红色句子是不是 select * from think_user where username =? and status=?的意思?
$map['status'] = 1;
// 认证方法
static public function authenticate($map,$model='') {
echo “123”
if(empty($model)) $model = C('USER_AUTH_MODEL');
echo $model
//使用给定的Map进行认证
return M($model)->where($map)->find();
echo ”456“
}
结果输出123User,456没输出来。说明红色语句有问题
红色句子是不是 select * from think_user where username =? and status=?的意思?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货