PHPackages                             pfinal/idempotent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pfinal/idempotent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pfinal/idempotent
=================

幂等

v1.0.0(8y ago)120MITPHP

Since Apr 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pfinal/idempotent)[ Packagist](https://packagist.org/packages/pfinal/idempotent)[ Docs](http://www.pfinal.cn)[ RSS](/packages/pfinal-idempotent/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

接口幂等
====

[](#接口幂等)

安装
--

[](#安装)

```
composer require pfinal/idempotent
```

创建表
---

[](#创建表)

```
CREATE TABLE `idempotent` (
    `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
    `seq` varchar(50) NOT NULL DEFAULT '' COMMENT '请求序号',
    `response` longtext  COMMENT '响应内容',
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    UNIQUE KEY `ind_seq` (`seq`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '幂等';
```

调用示例
----

[](#调用示例)

```
