| 商品编号 | APP1972 |
| 源码名称 | 抖音一键登录 |
| 当前版本 | V1.0 |
| 发布时间 | 2026-07-29 19:01:55 |
| 更新时间 | 2026-07-28 17:23:58 |
| 源码级别 | L2级插件 |
| 插件类型 | 工具类 |
| 功能类别 | 会员 登录 |
| 依赖场景 | 用户系统 说明 |
| 源码加密 | 未加密 |
| 技术保障 | 第三方开发商源码由商家提供售后服务;官方自营和第三方供应商源码有官方提供售后服务。 |
| 支持浏览器 | Chromium内核浏览器、Chrome、Edge、Firefox、Safari、Opera等 |
抖音一键登录
设置步骤
1.申请抖音开放平台,链接地址:https://developer.open-douyin.com/
2.申请网站应用,链接地址:https://developer.open-douyin.com/docs/resource/zh-CN/dop/overview/usage-guide
3.绑定回调域名
因传参问题,需要设置伪静态:将如下代码复制到config/rewrite.php中。
"callback\/douyin.html?(.+)" => "index.php?s=api&c=oauth&m=index&name=douyin&type=login&action=callback",
"callback\/douyin.html" => "index.php?s=api&c=oauth&m=index&name=douyin&type=login&action=callback",

4.设置密钥

5.登录页面添加抖音代码:
{if isset($ci->member_cache['oauth']['douyin']['id']) && $ci->member_cache['oauth']['douyin']['id']}
{/if} 
