From 6983ea8b0bbf5213352391f872c322dc058dba59 Mon Sep 17 00:00:00 2001 From: weijunyi Date: Tue, 29 Jan 2019 16:26:14 +0800 Subject: [PATCH] =?UTF-8?q?README=E8=A1=A5=E5=85=85=E6=BA=90=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fa1e3d..1d043e1 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,14 @@ $private = file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'private_key' $api->SetPrivateKey($private); $sig = $api->genSig('xiaojun', 24*3600*180); var_export($sig); -``` \ No newline at end of file +``` + +### 源代码集成 +```php +require 'vendor/autoload.php'; +``` +直接上面的 ```require``` 语句替换为下面的 +```php +require "TLSSigAPI.php"; +``` +注意语句的路径需要随着 api 文件的存放路径而修改。 \ No newline at end of file