Verify.php
376 字节
<?php
namespace Lackoxygen\TiktokShop\Passage;
class Verify extends Passage
{
public function md5($sign, string $body): bool
{
$md5 = md5($this->config->getAppKey() .
$body .
$this->config->getAppSecret());
return $md5 === $sign;
}
public function sha256($sign, string $body): bool
{
return true;
}
}