GeeTeam / gt3-php-sdk

69 stars 41 forks source link

fail_validate()离线验证结果错误 #8

Open aspnmy opened 7 years ago

aspnmy commented 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才能正常验证

guowoo commented 6 years ago

BeastPHP/easy-geetest 可以试试这个库,标准psr规范实现的sdk

duantianyu commented 5 years ago

同意aspnmy的说法,我提交了一个修改 https://github.com/GeeTeam/gt3-php-sdk/pull/12