• 此项目
    • 正在载入...
  • 登录

竞泽 / tiktok-shop-sdk · 文件

转到一个项目

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 2
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • tiktok_shop
  • src
  • Support
  • Verify.php
  • feat:结构
    f43f7e43
    lackoxygen 在
    2022-07-13 10:39:28 +0800
    提交 浏览文件
Verify.php 444 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php

namespace Lackoxygen\TiktokShop\Support;

use Lackoxygen\TiktokShop\Attribute\Config\Config;

class Verify extends Config
{
    /**
     * @param $sign
     * @param string $body
     * @return bool
     */
    public function md5($sign, string $body): bool
    {
        $md5 = md5(
            $this->config->getAppKey() .
            $body .
            $this->config->getAppSecret()
        );
        return $md5 === $sign;
    }
}