Open aspnmy opened 7 years ago
public function fail_validate($challenge, $validate, $seccode) { if(md5($challenge) == $validate){ return 1; }else{ return 0; } } 此处验证错误 $seccode也没使用到,改成md5($this->private_key . 'geetest' . $challenge) == $validate才能正常验证
BeastPHP/easy-geetest 可以试试这个库,标准psr规范实现的sdk
同意aspnmy的说法,我提交了一个修改 https://github.com/GeeTeam/gt3-php-sdk/pull/12
public function fail_validate($challenge, $validate, $seccode) { if(md5($challenge) == $validate){ return 1; }else{ return 0; } } 此处验证错误 $seccode也没使用到,改成md5($this->private_key . 'geetest' . $challenge) == $validate才能正常验证