jack
jack
public function save($imgname, $type = null, $quality = 80, $interlace = true) { if (empty($this->img)) { E('没有可以被保存的图像资源'); } //自动获取图像类型 if (is_null($type)) { $type = $this->info['type']; } else { $type =...
问题出在密码与确认密码的confirm: array('repassword','password','确认密码与密码不一致',self::EXISTS_VALIDATE ,'confirm'), array('password', '6,20', '请输入6到20位密码', self::EXISTS_VALIDATE, 'length'), 框架里的confirm判断是: case 'confirm': // 验证两个字段是否相同 return $data[$val[0]] == $data[$val[1]]; 这里如果password=“000000”而repassword=“000”,仍会返回true。